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
a3169768
Commit
a3169768
authored
May 15, 2019
by
ptrblck
Committed by
mcarilli
May 15, 2019
Browse files
raise exception if cudnn is disabled (#305)
parent
df099a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
apex/amp/frontend.py
apex/amp/frontend.py
+4
-0
No files found.
apex/amp/frontend.py
View file @
a3169768
...
...
@@ -303,6 +303,10 @@ def initialize(
if
not
enabled
:
return
models
,
optimizers
if
not
torch
.
backends
.
cudnn
.
enabled
:
raise
RuntimeError
(
"Amp requires torch.backends.cudnn.enabled = True"
)
if
opt_level
not
in
opt_levels
:
raise
RuntimeError
(
"Unexpected optimization level {}. "
.
format
(
opt_level
)
+
...
...
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