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
"torchvision/vscode:/vscode.git/clone" did not exist on "01b0a00437dabdf141b6fe32755b84394cfb4e3b"
Commit
04667139
authored
Jun 07, 2019
by
Michael Carilli
Browse files
Fix for
https://github.com/NVIDIA/apex/issues/344
parent
1dca16cc
Changes
1
Show 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,6 +308,9 @@ def initialize(
...
@@ -308,6 +308,9 @@ def initialize(
_amp_state
.
verbosity
=
verbosity
_amp_state
.
verbosity
=
verbosity
if
not
enabled
:
if
not
enabled
:
if
optimizers
is
None
:
return
models
else
:
return
models
,
optimizers
return
models
,
optimizers
if
not
torch
.
backends
.
cudnn
.
enabled
:
if
not
torch
.
backends
.
cudnn
.
enabled
:
...
...
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