提交 78362f80 authored 作者: Olivier Mastropietro's avatar Olivier Mastropietro

First point on Issue #4647 (syntax errors)

上级 408e8c20
...@@ -112,11 +112,11 @@ def local_alloc_dimshuffle(node): ...@@ -112,11 +112,11 @@ def local_alloc_dimshuffle(node):
if not pattern[0] : if not pattern[0] :
return False return False
j = 0 j = 0
for i, bool_ in enumerate(pattern) : for i, bool_ in enumerate(pattern):
if not bool_ : if not bool_ :
j = i j = i
break break
if sum(pattern[j:] == 0 : if sum(pattern[j:]) == 0:
return input_.inputs return input_.inputs
else : else :
return False return False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论