From e1269cce171bbe1472092d784ee26f2311e4557e Mon Sep 17 00:00:00 2001 From: JZZ-NOTE Date: Thu, 18 Nov 2021 07:04:27 +0000 Subject: [PATCH] fix memeory_optimize_pass bug --- 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 357c2bc4231fd..2202b94bee727 100644 --- a/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc +++ b/paddle/fluid/inference/analysis/passes/memory_optimize_pass.cc @@ -105,7 +105,8 @@ void MemoryOptimizePass::CollectVarMemorySize( "sequence_pool", "recurrent", "lod_reset", - "fetch"}; + "fetch", + "share_data"}; for (auto* tmp : node->inputs) { CHECK(tmp->IsOp()); std::string op_type = tmp->Op()->Type();