未验证 提交 e09803c5 编写于 作者: X xiongkun 提交者: GitHub

fix memory leakage (#43141) (#43220)

上级 52ef8656
......@@ -61,7 +61,7 @@ class FunctionCache(object):
def __init__(self):
# Caches the converted static functions. {dygraph_func: static_func}
self._converted_static_func_caches = dict()
self._converted_static_func_caches = weakref.WeakKeyDictionary()
# Caches the converted ast node for same source code. {source_code: ast_root}
self._code_to_ast_caches = dict()
self._dygraph_to_static = DygraphToStaticAst()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册