diff --git a/paddle/fluid/framework/executor.cc b/paddle/fluid/framework/executor.cc index fb7c13d36db7e..bcbd717aa47dd 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_; };