提交 11b755f5 authored 作者: Frederic Bastien's avatar Frederic Bastien

Make FunctionGraph.disown() revert more stuff

上级 4052c18b
......@@ -230,6 +230,8 @@ class FunctionGraph(utils.object2):
them back to what they were originally.
"""
for f in self._features:
self.remove_feature(f)
for apply_node in self.apply_nodes:
del apply_node.fgraph
del apply_node.deps
......@@ -240,6 +242,8 @@ class FunctionGraph(utils.object2):
self.variables = set()
self.inputs = None
self.outputs = None
self.profile = None
self.update_mapping = None
# clients #
def clients(self, r):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论