提交 dd22a040 authored 作者: James Bergstra's avatar James Bergstra

debugmode works again when not checking python implementations

上级 efbc5d7f
...@@ -891,7 +891,9 @@ class _Linker(gof.link.LocalLinker): ...@@ -891,7 +891,9 @@ class _Linker(gof.link.LocalLinker):
if not r.type.is_valid_value(storage_map[r][0]): if not r.type.is_valid_value(storage_map[r][0]):
raise InvalidValueError(r, storage_map[r][0]) raise InvalidValueError(r, storage_map[r][0])
# check for stride correctness if we're doing that if thunk_py:
assert r in r_vals #because we put it in during the thunk_py branch
# check for stride correctness (may raise exception)
_check_strides_match(r_vals[r], storage_map[r][0], _check_strides_match(r_vals[r], storage_map[r][0],
self.maker.mode.require_matching_strides, node.op) self.maker.mode.require_matching_strides, node.op)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论