提交 84b7e0d7 authored 作者: Roy Xue's avatar Roy Xue

Code clean

上级 5e7aaeb4
...@@ -685,7 +685,7 @@ class Function(object): ...@@ -685,7 +685,7 @@ class Function(object):
# check the allow_gc # check the allow_gc
# 1.no allow_gc return False 2.has allow_gc, if allow_gc is False, return True # 1.no allow_gc return False 2.has allow_gc, if allow_gc is False, return True
if not getattr(self.fn, 'allow_gc', True): if not getattr(self.fn, 'allow_gc', True):
for _, val in self.fn.storage_map.iteritems(): for val in self.fn.storage_map.values():
val[0] = None val[0] = None
for node in self.fn.fgraph.apply_nodes: for node in self.fn.fgraph.apply_nodes:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论