提交 900d9f87 authored 作者: Jeffrey Enos's avatar Jeffrey Enos 提交者: Brandon T. Willard

Change reference count assertion to warning

上级 ce01b113
...@@ -1043,8 +1043,12 @@ class VMLinker(LocalLinker): ...@@ -1043,8 +1043,12 @@ class VMLinker(LocalLinker):
dependencies=dependency_map_list, dependencies=dependency_map_list,
) )
if platform.python_implementation() == "CPython": if platform.python_implementation() == "CPython" and c0 != sys.getrefcount(
assert c0 == sys.getrefcount(node_n_inputs) node_n_inputs
):
logger.warning(
"Detected reference count inconsistency after CVM construction"
)
else: else:
lazy = self.lazy lazy = self.lazy
if lazy is None: if lazy is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论