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
9bd61cc1
"docs/source/vscode:/vscode.git/clone" did not exist on "0dd59e0dda22eabf54fc95ad8050094df239bd39"
Commit
9bd61cc1
authored
May 22, 2019
by
ptrblck
Committed by
mcarilli
May 22, 2019
Browse files
use value in assert statement (#321)
parent
c490bd36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/amp/frontend.py
apex/amp/frontend.py
+1
-1
No files found.
apex/amp/frontend.py
View file @
9bd61cc1
...
...
@@ -70,7 +70,7 @@ class Properties(object):
if
self
.
opt_level
==
"O1"
and
value
is
not
None
:
warn_or_err
(
"With opt_level O1, batchnorm functions are automatically patched "
"to run in FP32, so keep_batchnorm_fp32 should be None."
+
"keep_batchnorm_fp32 was {}"
.
format
(
keep_batchnorm_fp32
))
"
keep_batchnorm_fp32 was {}"
.
format
(
value
))
if
value
==
"False"
:
self
.
options
[
name
]
=
False
elif
value
==
"True"
:
...
...
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