提交 630e1947 authored 作者: --global's avatar --global

Mark node to be deleted once it's certain it will be deleted

上级 7d23a4c8
......@@ -478,7 +478,6 @@ class PushOutSeqScan(gof.Optimizer):
(x in inner_seqs_set) for x in nd.inputs]) and
isinstance(nd.op, theano.tensor.Elemwise)):
to_remove_set.add(nd)
outside_ins = []
depends_on_seqs = False
......@@ -511,6 +510,8 @@ class PushOutSeqScan(gof.Optimizer):
# scan.
continue
to_remove_set.add(nd)
# Do not call make_node for test_value
nw_outer_node = nd.op(*outside_ins,
**dict(return_list=True))[0].owner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论