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
1dca16cc
Commit
1dca16cc
authored
Jun 06, 2019
by
Michael Carilli
Browse files
Making O1 the default opt level
parent
b82c6bd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apex/amp/frontend.py
apex/amp/frontend.py
+2
-2
No files found.
apex/amp/frontend.py
View file @
1dca16cc
...
...
@@ -195,7 +195,7 @@ def initialize(
models
,
optimizers
=
None
,
enabled
=
True
,
opt_level
=
None
,
opt_level
=
"O1"
,
cast_model_type
=
None
,
patch_torch_functions
=
None
,
keep_batchnorm_fp32
=
None
,
...
...
@@ -233,7 +233,7 @@ def initialize(
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
opt_level (str,
optional, default="O1"
): Pure or mixed precision optimization level. Accepted values are
"O0", "O1", "O2", and "O3", explained in detail above.
cast_model_type (``torch.dtype``, optional, default=None): Optional property override, see
above.
...
...
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