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

Replace == by is

上级 a0d75b41
...@@ -361,7 +361,7 @@ def inplace_elemwise_optimizer_op(OP): ...@@ -361,7 +361,7 @@ def inplace_elemwise_optimizer_op(OP):
elif (hasattr(fgraph, 'destroy_handler') and elif (hasattr(fgraph, 'destroy_handler') and
inp.owner and inp.owner and
updated_inp in fgraph.destroy_handler.root_destroyer and updated_inp in fgraph.destroy_handler.root_destroyer and
fgraph.destroy_handler.root_destroyer[updated_inp] == inp.owner): fgraph.destroy_handler.root_destroyer[updated_inp] is inp.owner):
vars_from_inplace.append(inp_idx) vars_from_inplace.append(inp_idx)
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论