提交 fe2d590d 编写于 作者: Q qiaolongfei

fix bug

上级 142fac18
...@@ -172,8 +172,10 @@ class ControlFlowGraph(object): ...@@ -172,8 +172,10 @@ class ControlFlowGraph(object):
block_desc, cache_var, is_forward).dtype() block_desc, cache_var, is_forward).dtype()
# TODO(qijun): actually, we should compare dtype_to_size[x_dtype] # TODO(qijun): actually, we should compare dtype_to_size[x_dtype]
# and dtype_to_size[cache_dtype] # and dtype_to_size[cache_dtype]
if x_dtype == cache_dtype and PRINT_LOG: if x_dtype == cache_dtype:
print(("Hit Cache !!!! cache pool index " if PRINT_LOG:
print(
("Hit Cache !!!! cache pool index "
"is %d, var name is %s, " "is %d, var name is %s, "
"cached var name is %s, " "cached var name is %s, "
"var shape is %s ") % "var shape is %s ") %
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册