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

small fix to have the info in all case.

上级 de2768b9
......@@ -455,7 +455,8 @@ def pydotprint(fct, outfile=None,
prof_str=' (%.3fs,%.3f%%,%.3f%%)'%(time,pt,pf)
applystr = str(node.op).replace(':','_')
if (applystr in all_strings) or with_ids:
applystr = applystr+' id='+str(topo.index(node))+prof_str
applystr = applystr+' id='+str(topo.index(node))
applystr += prof_str
all_strings.add(applystr)
apply_name_cache[node] = applystr
return applystr
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论