From fcc1ffab5d2bf7db8859d772b8eda7c2ea9c1d96 Mon Sep 17 00:00:00 2001 From: dongzhihong Date: Wed, 24 Oct 2018 21:41:39 +0800 Subject: [PATCH] fix mem opt --- .../paddle/fluid/transpiler/memory_optimization_transpiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/transpiler/memory_optimization_transpiler.py b/python/paddle/fluid/transpiler/memory_optimization_transpiler.py index 861bb5fae..7298bfe16 100755 --- a/python/paddle/fluid/transpiler/memory_optimization_transpiler.py +++ b/python/paddle/fluid/transpiler/memory_optimization_transpiler.py @@ -171,7 +171,7 @@ class ControlFlowGraph(object): self._live_out[i] |= self._live_in[s] self._live_in[i] = self._uses[i] | ( self._live_out[i] - self._defs[i]) - if live_in[i] != self._live_in[i]: + if live_in[i] != set(self._live_in[i]): for d in self._presuccessors[i]: worklist.append(d) -- GitLab