提交 8b878996 authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't clone if there is no replacement.

上级 c52b9396
......@@ -1353,4 +1353,6 @@ def forced_replace(out, x, y):
elif graph.owner:
q.extendleft(graph.owner.inputs)
if len(to_replace) == 0:
return out
return clone(out, replace=to_replace)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论