提交 aee78e71 authored 作者: ChienliMa's avatar ChienliMa

Fix a bug: While initializing a clone graph it should not be cloned again,…

Fix a bug: While initializing a clone graph it should not be cloned again, otherwise the equiv doesn't work.
上级 ce29622c
...@@ -841,7 +841,8 @@ class FunctionGraph(utils.object2): ...@@ -841,7 +841,8 @@ class FunctionGraph(utils.object2):
if check_integrity: if check_integrity:
self.check_integrity() self.check_integrity()
e = FunctionGraph([equiv[i] for i in self.inputs], e = FunctionGraph([equiv[i] for i in self.inputs],
[equiv[o] for o in self.outputs]) [equiv[o] for o in self.outputs],
clone=Flase)
if check_integrity: if check_integrity:
e.check_integrity() e.check_integrity()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论