From 1ca1e1c3843e2710e6a9790a503626afb6af44b9 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Thu, 15 Mar 2018 18:43:44 -0700 Subject: [PATCH] Fix a program copy regression. Single device on se-resnet reduce from 0.56 to 0.50 --- paddle/fluid/framework/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/executor.cc b/paddle/fluid/framework/executor.cc index fb7c13d36db..bcbd717aa47 100644 --- a/paddle/fluid/framework/executor.cc +++ b/paddle/fluid/framework/executor.cc @@ -44,7 +44,7 @@ struct ExecutorPrepareContext { ExecutorPrepareContext(const framework::ProgramDesc& prog, size_t block_id) : prog_(prog), block_id_(block_id) {} - framework::ProgramDesc prog_; + const framework::ProgramDesc& prog_; size_t block_id_; std::vector> ops_; }; -- GitLab