Skip to content

Commit 4b01f4f

Browse files
JiayiFengjacquesqiao
authored andcommitted
fix mac compile
1 parent 494cecd commit 4b01f4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/fluid/framework/details/multi_devices_graph_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MultiDevSSAGraphBuilder : public SSAGraphBuilder {
4747
#endif
4848

4949
std::unique_ptr<SSAGraph> Build(const ProgramDesc &program) const override;
50-
int GetVarDeviceID(const std::string &varname) const;
50+
int GetVarDeviceID(const std::string &varname) const override;
5151

5252
private:
5353
void CreateOpHandleIOs(SSAGraph *result, const OpDesc &op,

paddle/fluid/framework/parallel_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ ParallelExecutor::ParallelExecutor(
121121
#endif
122122
}
123123

124-
builder_ = std::move(builder_factory.Create());
124+
builder_ = builder_factory.Create();
125125
member_->executor_.reset(new details::ThreadedSSAGraphExecutor(
126126
exec_strategy, member_->local_scopes_, places,
127127
builder_->Build(main_program)));

0 commit comments

Comments
 (0)