提交 65b1d1ed authored 作者: Frederic's avatar Frederic

fix memory leak with allow_gc=False

上级 9256890c
......@@ -1409,12 +1409,13 @@ class Assert(T.Op):
check = "\n".join(check)
return """
%(check)s
Py_XDECREF(%(out)s);
%(out)s = %(value)s;
Py_INCREF(%(value)s);
""" % locals()
def c_code_cache_version(self):
return (1, 0)
return (1, 1)
def infer_shape(self, node, input_shapes):
return [input_shapes[0]]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论