提交 223cdae9 authored 作者: Frederic Bastien's avatar Frederic Bastien

always check the perform if their is no c_code.

上级 79b125f3
......@@ -936,7 +936,7 @@ class _Linker(gof.link.LocalLinker):
except (NotImplementedError, utils.MethodNotDefined):
thunks_c.append(None)
if self.maker.mode.check_py_code:
if self.maker.mode.check_py_code or thunks_c[-1] is None:
p = node.op.perform
thunk = (lambda p = p, i = node_input_storage, o = node_output_storage, n =
node: p(n, [x[0] for x in i], o))
......@@ -1455,7 +1455,7 @@ class DebugMode(Mode):
check_py_code = config.DebugMode.check_py
"""
Should we evaluate (and check) the `perform` implementations?
Should we evaluate (and check) the `perform` implementations? Always checked if no `c_code`.
"""
check_isfinite = config.DebugMode.check_finite
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论