提交 81957b6d authored 作者: Frederic's avatar Frederic

be more strict on the type of error catched.

上级 93a4f8e9
...@@ -77,7 +77,7 @@ class InputToGpuOptimizer(Optimizer): ...@@ -77,7 +77,7 @@ class InputToGpuOptimizer(Optimizer):
if new_input.type==input.type: if new_input.type==input.type:
env.replace_validate(input, new_input, "InputToGpuOptimizer") env.replace_validate(input, new_input, "InputToGpuOptimizer")
except Exception, e: except TypeError, e:
#as we currently only support float32, this can fail. #as we currently only support float32, this can fail.
#Using try except make that we won't need #Using try except make that we won't need
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论