Skip to content

Commit 1f757f5

Browse files
authored
remove unnecessary build graph logic (PaddlePaddle#8896)
* fix mac build error * remove unnecessary build graph
1 parent 7287630 commit 1f757f5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

python/paddle/fluid/memory_optimization_transpiler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def _update_skip_opt_set(self):
148148
self._skip_opt.update(op.output_arg_names())
149149

150150
def release_memory(self):
151-
self._build_graph()
152151
self._dataflow_analyze()
153152
self._update_skip_opt_set()
154153
fwd_id = 0
@@ -187,7 +186,6 @@ def compare_shape(x_shape, cache_shape, opt_level):
187186
return True
188187
return False
189188

190-
self._build_graph()
191189
self._dataflow_analyze()
192190
self._update_skip_opt_set()
193191
self.pool = []

0 commit comments

Comments
 (0)