Commit 9bd61cc1 authored by ptrblck's avatar ptrblck Committed by mcarilli
Browse files

use value in assert statement (#321)

parent c490bd36
...@@ -70,7 +70,7 @@ class Properties(object): ...@@ -70,7 +70,7 @@ class Properties(object):
if self.opt_level == "O1" and value is not None: if self.opt_level == "O1" and value is not None:
warn_or_err("With opt_level O1, batchnorm functions are automatically patched " warn_or_err("With opt_level O1, batchnorm functions are automatically patched "
"to run in FP32, so keep_batchnorm_fp32 should be None." + "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": if value == "False":
self.options[name] = False self.options[name] = False
elif value == "True": elif value == "True":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment