提交 73283bb2 authored 作者: Frederic Bastien's avatar Frederic Bastien

Skip nfunc when we can't use it. It will give the old answer in that case.

上级 f24c7013
...@@ -660,7 +660,11 @@ second dimension ...@@ -660,7 +660,11 @@ second dimension
except ImportError: except ImportError:
break break
for sub in symb[1:]: for sub in symb[1:]:
module = getattr(module, sub) try:
module = getattr(module, sub)
except AttributeError:
module = None
break
self.nfunc = module self.nfunc = module
if (len(node.inputs) < 32 and if (len(node.inputs) < 32 and
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论