提交 63353634 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix stochastic optimization issue

上级 c0c60838
...@@ -471,7 +471,7 @@ class PushOutSeqScan(gof.Optimizer): ...@@ -471,7 +471,7 @@ class PushOutSeqScan(gof.Optimizer):
not op.as_while and not op.as_while and
not op.outer_mitmot(node)): not op.outer_mitmot(node)):
# Nothing in the inner graph should be kept # Nothing in the inner graph should be kept
replace_with = {} replace_with = gof.python25.OrderedDict()
for idx, out in enumerate(to_replace): for idx, out in enumerate(to_replace):
if out in local_fgraph.outputs: if out in local_fgraph.outputs:
x = node.outputs[local_fgraph.outputs.index(out)] x = node.outputs[local_fgraph.outputs.index(out)]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论