Skip to content

Commit

Permalink
update warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent8 committed Apr 16, 2024
1 parent 92071f1 commit 40c6b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchbenchmark/util/extra_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def apply_decoration_args(
elif model.test == "train":
# the model must implement staged train test
warnings.warn(
"Usually models do not want to enable amp only in forward path, so expected "
"Usually models only want to enable AMP in forward path, so expected "
"model to have staged train support."
)
import torch
Expand Down
2 changes: 1 addition & 1 deletion torchbenchmark/util/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def enable_amp(self):
self.add_context(self.amp_context, TEST_STAGE.FORWARD)
else:
warnings.warn(
"Usually models do not want to enable amp only in forward path, so expected "
"Usually models only want to enable AMP in forward path, so expected "
"model to have staged train support."
)

Expand Down

0 comments on commit 40c6b93

Please sign in to comment.