shanyi15-patch-2
qiaolongfei 7 years ago
parent 142fac18ec
commit fe2d590d21

@ -172,8 +172,10 @@ class ControlFlowGraph(object):
block_desc, cache_var, is_forward).dtype()
# TODO(qijun): actually, we should compare dtype_to_size[x_dtype]
# and dtype_to_size[cache_dtype]
if x_dtype == cache_dtype and PRINT_LOG:
print(("Hit Cache !!!! cache pool index "
if x_dtype == cache_dtype:
if PRINT_LOG:
print(
("Hit Cache !!!! cache pool index "
"is %d, var name is %s, "
"cached var name is %s, "
"var shape is %s ") %

Loading…
Cancel
Save