Skip to content

Commit 1ca1e1c

Browse files
committed
Fix a program copy regression.
Single device on se-resnet reduce from 0.56 to 0.50
1 parent 1e4c504 commit 1ca1e1c

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)