Skip to content

Commit fcc1ffa

Browse files
committed
fix mem opt
1 parent 2256fae commit fcc1ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/transpiler/memory_optimization_transpiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _dataflow_analyze(self):
171171
self._live_out[i] |= self._live_in[s]
172172
self._live_in[i] = self._uses[i] | (
173173
self._live_out[i] - self._defs[i])
174-
if live_in[i] != self._live_in[i]:
174+
if live_in[i] != set(self._live_in[i]):
175175
for d in self._presuccessors[i]:
176176
worklist.append(d)
177177

0 commit comments

Comments
 (0)