Skip to content

Commit 9751345

Browse files
authored
Merge pull request #12455 from jacquesqiao/fix-mac-build-graph_executor
fix mac build of graph_executor
2 parents 7ae73e3 + c8c8c01 commit 9751345

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

paddle/fluid/framework/details/scope_buffered_ssa_graph_executor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class ScopeBufferedSSAGraphExecutor : public SSAGraphExecutor {
4141
std::vector<VariableInfo> var_infos, std::vector<platform::Place> places,
4242
std::unique_ptr<SSAGraphExecutor>&& underlying_executor);
4343

44-
const ir::Graph& Graph() const { return underlying_executor_->Graph(); }
44+
const ir::Graph& Graph() const override {
45+
return underlying_executor_->Graph();
46+
}
4547

4648
FeedFetchList Run(const std::vector<std::string>& fetch_tensors) override;
4749

paddle/fluid/framework/details/threaded_ssa_graph_executor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ThreadedSSAGraphExecutor : public SSAGraphExecutor {
4242
const std::vector<platform::Place> &places,
4343
std::unique_ptr<ir::Graph> &&graph);
4444

45-
const ir::Graph &Graph() const { return *graph_; }
45+
const ir::Graph &Graph() const override { return *graph_; }
4646
// Run a SSAGraph by a thread pool
4747
// Use topological sort algorithm
4848
FeedFetchList Run(const std::vector<std::string> &fetch_tensors) override;

0 commit comments

Comments
 (0)