提交 ee19fe9c authored 作者: carriepl's avatar carriepl

Refactor loop code

上级 bbd600dd
......@@ -319,6 +319,7 @@ def inplace_elemwise_optimizer_op(OP):
raised_warning = not verbose
update_outs = [fgraph.outputs[i] for i in fgraph.update_mapping]
for candidate_output in candidate_outputs:
# If the output of the node can be established as an update
......@@ -329,9 +330,6 @@ def inplace_elemwise_optimizer_op(OP):
sorted_candidate_inputs = candidate_inputs
if fgraph.update_mapping:
update_outs = [fgraph.outputs[i]
for i in fgraph.update_mapping]
if candidate_out_var in update_outs:
# The candidate output is an update. Sort the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论