From 842ded14b061390442b65f7f56a24ee0b2a4b858 Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Thu, 25 Apr 2019 09:44:37 -0500 Subject: [PATCH] fix reference_count_pass,test=develop (#17060) test=develop --- paddle/fluid/framework/details/reference_count_pass.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/framework/details/reference_count_pass.cc b/paddle/fluid/framework/details/reference_count_pass.cc index 25337872c10..2b2a1ac5161 100644 --- a/paddle/fluid/framework/details/reference_count_pass.cc +++ b/paddle/fluid/framework/details/reference_count_pass.cc @@ -138,6 +138,7 @@ static ComputationOpHandle *FindNextComputationOpHandleOrReturnItself( for (auto *pending_op : out_var->PendingOps()) { if (visited.count(pending_op)) continue; visited.insert(pending_op); + q.push(pending_op); } } } while (!q.empty()); -- GitLab