Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
apex
Commits
823b30cf
"...text-generation-inference.git" did not exist on "f092ba9b223a0582fa930981ad319d253d1ac765"
Unverified
Commit
823b30cf
authored
Mar 20, 2019
by
mcarilli
Committed by
GitHub
Mar 20, 2019
Browse files
Allow optional optimizer part 2
parent
b80b4d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
apex/amp/frontend.py
apex/amp/frontend.py
+3
-2
No files found.
apex/amp/frontend.py
View file @
823b30cf
...
...
@@ -192,7 +192,7 @@ opt_levels = {"O3": O3(),
# allow user to directly pass Properties struct as well?
def
initialize
(
models
,
optimizers
,
optimizers
=
None
,
enabled
=
True
,
opt_level
=
None
,
cast_model_type
=
None
,
...
...
@@ -217,7 +217,8 @@ def initialize(
Args:
models (torch.nn.Module or list of torch.nn.Modules): Models to modify/cast.
optimizers (torch.optim.Optimizer or list of torch.optim.Optimizers): Optimizers to modify/cast.
optimizers (optional, torch.optim.Optimizer or list of torch.optim.Optimizers): Optimizers to modify/cast.
REQUIRED for training, optional for inference.
enabled (bool, optional, default=True): If False, renders all Amp calls no-ops, so your script
should run as if Amp were not present.
opt_level (str, required): Pure or mixed precision optimization level. Accepted values are
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment