未验证 提交 772d4f0a 编写于 作者: L Leo Chen 提交者: GitHub

remove unused base class ExecutorBase (#43828)

上级 7821d783
......@@ -18,21 +18,18 @@
#include <unordered_map>
#include <vector>
#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<std::string>& feed_names,
const std::vector<framework::LoDTensor>& feed_tensors,
const std::vector<std::string>& fetch_names) = 0;
};
class InterpreterCore;
class StandaloneExecutor : public ExecutorBase {
class StandaloneExecutor {
public:
StandaloneExecutor(const platform::Place& place,
const ProgramDesc& startup_prog,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册