From 1f757f5f70a02b4b04bf889b20eaf18b0e3159d1 Mon Sep 17 00:00:00 2001 From: QI JUN Date: Tue, 13 Mar 2018 11:11:39 +0800 Subject: [PATCH] remove unnecessary build graph logic (#8896) * fix mac build error * remove unnecessary build graph --- python/paddle/fluid/memory_optimization_transpiler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/paddle/fluid/memory_optimization_transpiler.py b/python/paddle/fluid/memory_optimization_transpiler.py index e6e98cbfec..41d1eca82e 100644 --- a/python/paddle/fluid/memory_optimization_transpiler.py +++ b/python/paddle/fluid/memory_optimization_transpiler.py @@ -148,7 +148,6 @@ class ControlFlowGraph(object): self._skip_opt.update(op.output_arg_names()) def release_memory(self): - self._build_graph() self._dataflow_analyze() self._update_skip_opt_set() fwd_id = 0 @@ -187,7 +186,6 @@ class ControlFlowGraph(object): return True return False - self._build_graph() self._dataflow_analyze() self._update_skip_opt_set() self.pool = [] -- GitLab