未验证 提交 1f757f5f 编写于 作者: Q QI JUN 提交者: GitHub

remove unnecessary build graph logic (#8896)

* fix mac build error

* remove unnecessary build graph
上级 7287630e
...@@ -148,7 +148,6 @@ class ControlFlowGraph(object): ...@@ -148,7 +148,6 @@ class ControlFlowGraph(object):
self._skip_opt.update(op.output_arg_names()) self._skip_opt.update(op.output_arg_names())
def release_memory(self): def release_memory(self):
self._build_graph()
self._dataflow_analyze() self._dataflow_analyze()
self._update_skip_opt_set() self._update_skip_opt_set()
fwd_id = 0 fwd_id = 0
...@@ -187,7 +186,6 @@ class ControlFlowGraph(object): ...@@ -187,7 +186,6 @@ class ControlFlowGraph(object):
return True return True
return False return False
self._build_graph()
self._dataflow_analyze() self._dataflow_analyze()
self._update_skip_opt_set() self._update_skip_opt_set()
self.pool = [] self.pool = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册