提交 3b9fdd10 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Alexander Belopolsky

Fix another filter() use in scan for python3

上级 092b8e2c
...@@ -785,8 +785,7 @@ def scan(fn, ...@@ -785,8 +785,7 @@ def scan(fn,
not isinstance(x, SharedVariable) and not isinstance(x, SharedVariable) and
not isinstance(x, gof.Constant)), not isinstance(x, gof.Constant)),
gof.graph.inputs(fake_outputs)) gof.graph.inputs(fake_outputs))
extra_inputs = filter(lambda x: x not in args + fake_nonseqs, extra_inputs = [x for x in all_inputs if x not in args + fake_nonseqs]
all_inputs)
non_seqs += extra_inputs non_seqs += extra_inputs
## Note we do not use all_inputs directly since the order of variables ## Note we do not use all_inputs directly since the order of variables
## in args is quite important ## in args is quite important
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论