提交 0ff7c79f authored 作者: Frederic Bastien's avatar Frederic Bastien

remove not needed anomore special case. Now the Clone op put the view_map correctly.

上级 9c48e363
......@@ -37,9 +37,6 @@ def alias_root(v):
def view_tree_set(v, treeset):
"""Add to `treeset` all variables that are views of v, given that v is not a view"""
treeset.add(v)
if v.owner and v.owner.op.__class__.__name__ == 'Clone':
v = v.owner.inputs[0]
treeset.add(v)
for cl, v_input_pos_to_cl in v.clients:
if cl == 'output':
continue
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论