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
04667139
Commit
04667139
authored
Jun 07, 2019
by
Michael Carilli
Browse files
Fix for
https://github.com/NVIDIA/apex/issues/344
parent
1dca16cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
apex/amp/frontend.py
apex/amp/frontend.py
+4
-1
No files found.
apex/amp/frontend.py
View file @
04667139
...
...
@@ -308,7 +308,10 @@ def initialize(
_amp_state
.
verbosity
=
verbosity
if
not
enabled
:
return
models
,
optimizers
if
optimizers
is
None
:
return
models
else
:
return
models
,
optimizers
if
not
torch
.
backends
.
cudnn
.
enabled
:
raise
RuntimeError
(
...
...
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