提交 4c7dc69d authored 作者: Frederic Bastien's avatar Frederic Bastien

disable gc.collect in the debug mode. This speed up…

disable gc.collect in the debug mode. This speed up tensor/tests/test_opt:test_fusion.test_elemwise_fusion from 30s to 3s!
上级 6d98f955
......@@ -1178,8 +1178,10 @@ class _Linker(gof.link.LocalLinker):
storage_map[r][0] = None
debug("done with node")
if True:
gc.collect()
if False:
#This could be usefull to help finding refcount problem.
#But it is very slow and it is not sure it will help.
gc.collect()
_find_bad_optimizations(order, env.equivalence_tracker.reasons, r_vals)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论