Skip to content

Commit 21e2c42

Browse files
authored
Merge pull request #9141 from panyx0718/develop
Fix a program copy regression.
2 parents 4f3b73e + 1ca1e1c commit 21e2c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct ExecutorPrepareContext {
4444
ExecutorPrepareContext(const framework::ProgramDesc& prog, size_t block_id)
4545
: prog_(prog), block_id_(block_id) {}
4646

47-
framework::ProgramDesc prog_;
47+
const framework::ProgramDesc& prog_;
4848
size_t block_id_;
4949
std::vector<std::unique_ptr<OperatorBase>> ops_;
5050
};

0 commit comments

Comments
 (0)