diff --git a/paddle/fluid/framework/new_executor/standalone_executor.h b/paddle/fluid/framework/new_executor/standalone_executor.h index ae5670a3043c68b7f892a45deff32601cbd6a618..49199dd602c5319a5366c440998e2b4e016529a9 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,