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

make ambigous if more clear

上级 b392cc03
...@@ -417,7 +417,8 @@ class ScanSaveMem(gof.Optimizer): ...@@ -417,7 +417,8 @@ class ScanSaveMem(gof.Optimizer):
# change the number of steps in that case. To do this we set # change the number of steps in that case. To do this we set
# global_nsteps to None which is seen as a flag that nothing needs # global_nsteps to None which is seen as a flag that nothing needs
# to be done # to be done
if len(node.outputs) <= c_outs: assert len(node.outputs) >= c_outs
if len(node.outputs) == c_outs:
global_nsteps = {'real': -1, 'sym': []} global_nsteps = {'real': -1, 'sym': []}
else: else:
global_nsteps = None global_nsteps = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论