From 772d4f0aabcbdad98e44c31bd8e6e8702bf5686f Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Mon, 27 Jun 2022 11:45:34 +0800 Subject: [PATCH] remove unused base class ExecutorBase (#43828) --- .../framework/new_executor/standalone_executor.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/framework/new_executor/standalone_executor.h b/paddle/fluid/framework/new_executor/standalone_executor.h index ae5670a3043..49199dd602c 100644 --- a/paddle/fluid/framework/new_executor/standalone_executor.h +++ b/paddle/fluid/framework/new_executor/standalone_executor.h @@ -18,21 +18,18 @@ #include #include +#include "paddle/fluid/framework/lod_tensor.h" #include "paddle/fluid/framework/new_executor/interpretercore.h" +#include "paddle/fluid/framework/new_executor/new_executor_defs.h" +#include "paddle/fluid/framework/program_desc.h" +#include "paddle/fluid/platform/place.h" namespace paddle { namespace framework { -class ExecutorBase { - public: - virtual ~ExecutorBase() {} - virtual paddle::framework::FetchList Run( - const std::vector& feed_names, - const std::vector& feed_tensors, - const std::vector& fetch_names) = 0; -}; +class InterpreterCore; -class StandaloneExecutor : public ExecutorBase { +class StandaloneExecutor { public: StandaloneExecutor(const platform::Place& place, const ProgramDesc& startup_prog, -- GitLab