提交 80e2bba5 authored 作者: --global's avatar --global

Update comment

上级 c71ac8ac
...@@ -612,8 +612,10 @@ class PushOutScanOutput(gof.Optimizer): ...@@ -612,8 +612,10 @@ class PushOutScanOutput(gof.Optimizer):
fgraph.attach_feature(gof.toolbox.ReplaceValidate()) fgraph.attach_feature(gof.toolbox.ReplaceValidate())
def apply(self, fgraph): def apply(self, fgraph):
# Don't perform the optimization on as_while scans since it's # Don't perform the optimization on as_while scans. Because these scans
# impossible to know for how many steps it will run. # don't run for a predetermined number of steps, handling them is
# more complicated and this optimization doesn't support it at the
# moment.
nodelist = [x for x in fgraph.toposort() nodelist = [x for x in fgraph.toposort()
if (isinstance(x.op, scan_op.Scan) and if (isinstance(x.op, scan_op.Scan) and
not x.op.as_while)] not x.op.as_while)]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论