提交 e35c9163 authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't force python code when it don't work! fix gh-5158

上级 b6949530
......@@ -1283,7 +1283,8 @@ second dimension
Return True if we do not want to compile c code
when doing constant folding of this node.
"""
return node.outputs[0].ndim == 0
# The python code don't support 32 inputs or more.
return node.outputs[0].ndim == 0 and len(node.inputs) < 32
################
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论