提交 be7f4870 authored 作者: Roy Xue's avatar Roy Xue

New updates

上级 a7c4d565
...@@ -749,6 +749,7 @@ class ProfileStats(object): ...@@ -749,6 +749,7 @@ class ProfileStats(object):
v = node_list[i:i+1] v = node_list[i:i+1]
if v[0] in maybe_executed: if v[0] in maybe_executed:
if check_node_state(v[0]): if check_node_state(v[0]):
maybe_executed.remove(v[0])
for node in v[0].outputs: for node in v[0].outputs:
compute_map[node][0] = 1 compute_map[node][0] = 1
for c, _ in node.clients: for c, _ in node.clients:
...@@ -762,6 +763,7 @@ class ProfileStats(object): ...@@ -762,6 +763,7 @@ class ProfileStats(object):
yield v+p yield v+p
for node in v[0].outputs: for node in v[0].outputs:
compute_map[node][0] = 0 compute_map[node][0] = 0
maybe_executed.add(v[0])
min_order = [] min_order = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论