提交 6d958660 authored 作者: Frederic Bastien's avatar Frederic Bastien

better reason. We should put the name of the optimizer there.

上级 dd7f9af2
...@@ -56,7 +56,7 @@ class InputToGpuOptimizer(Optimizer): ...@@ -56,7 +56,7 @@ class InputToGpuOptimizer(Optimizer):
new_input = host_from_gpu(gpu_from_host(input)) new_input = host_from_gpu(gpu_from_host(input))
if new_input.type==input.type: if new_input.type==input.type:
env.replace_validate(input, new_input, "To allow further optimisation to move Ops to gpu") env.replace_validate(input, new_input, "InputToGpuOptimizer")
except Exception, e: except Exception, 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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论