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

better condition following Olivier suggestions

上级 634d27c9
...@@ -297,7 +297,7 @@ class PushOutNonSeqScan(gof.Optimizer): ...@@ -297,7 +297,7 @@ class PushOutNonSeqScan(gof.Optimizer):
*shape) *shape)
# We need to add one extra dimension to the outputs # We need to add one extra dimension to the outputs
if len(replace_with.items()) > 0: if replace_with:
fgraph.replace_all_validate_remove( fgraph.replace_all_validate_remove(
replace_with.items(), replace_with.items(),
remove=[node], remove=[node],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论