From 8cb370f772dd09b5960c0185bfc9fb8d12634c17 Mon Sep 17 00:00:00 2001 From: JingZhuangzhuang <75348594+JZZ-NOTE@users.noreply.github.com> Date: Wed, 17 Nov 2021 00:50:26 -0600 Subject: [PATCH] add fetch to black list (#37123) (#37261) --- paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc b/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc index 7153163872..357c2bc423 100644 --- a/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc +++ b/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc @@ -104,7 +104,8 @@ void MemoryOptimizePass::CollectVarMemorySize( "equal", "sequence_pool", "recurrent", - "lod_reset"}; + "lod_reset", + "fetch"}; for (auto* tmp : node->inputs) { CHECK(tmp->IsOp()); std::string op_type = tmp->Op()->Type(); -- GitLab