Commit 786a398a authored by oahzxl's avatar oahzxl
Browse files

code style

parent 9b1b8903
...@@ -920,9 +920,13 @@ class IndexTracer(object): ...@@ -920,9 +920,13 @@ class IndexTracer(object):
# loop cur node's all arg until out of chunk # loop cur node's all arg until out of chunk
while len(tmp_cur_prepose_nodes) > 0: while len(tmp_cur_prepose_nodes) > 0:
if prepose_flag == False:
break
tmp_next_prepose_nodes = [] tmp_next_prepose_nodes = []
tmp_cur_related_prepose_nodes.extend(tmp_cur_prepose_nodes) tmp_cur_related_prepose_nodes.extend(tmp_cur_prepose_nodes)
for cur_prepose_node in tmp_cur_prepose_nodes: for cur_prepose_node in tmp_cur_prepose_nodes:
if prepose_flag == False:
break
for cur_prepose_node_arg in cur_prepose_node.args: for cur_prepose_node_arg in cur_prepose_node.args:
if type(cur_prepose_node_arg) != type(cur_prepose_node): if type(cur_prepose_node_arg) != type(cur_prepose_node):
continue continue
...@@ -942,8 +946,6 @@ class IndexTracer(object): ...@@ -942,8 +946,6 @@ class IndexTracer(object):
else: else:
prepose_flag = False prepose_flag = False
break break
break
break
# non compute op # non compute op
else: else:
tmp_next_prepose_nodes.append(cur_prepose_node_arg) tmp_next_prepose_nodes.append(cur_prepose_node_arg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment