提交 36217f79 authored 作者: Frederic Bastien's avatar Frederic Bastien

Remove some change in this PR.

上级 8de5cfaf
......@@ -1640,8 +1640,6 @@ def local_fill_sink(node):
if not r:
continue
replacements.update(r)
for v in replacements.values():
v.tag.values_eq_approx = values_eq_approx_remove_nan
return replacements
register_canonicalize(local_fill_sink)
......@@ -3851,11 +3849,9 @@ def local_merge_switch_same_cond(node):
if not all(s.owner.inputs[0] is cond for s in node.inputs[1:]):
return
# pull out switch
ret = T.switch(cond,
node.op(*[s.owner.inputs[1] for s in node.inputs]),
node.op(*[s.owner.inputs[2] for s in node.inputs]))
ret.tag.values_eq_approx = values_eq_approx_remove_nan
return [ret]
return [T.switch(cond,
node.op(*[s.owner.inputs[1] for s in node.inputs]),
node.op(*[s.owner.inputs[2] for s in node.inputs]))]
#############
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论