#pragma once #include namespace torch::nativert { class SerialGraphExecutor : public GraphExecutorBase { public: SerialGraphExecutor( const Graph& graph, std::vector> nodeKernels, const ExecutorConfig& executorConfig) : GraphExecutorBase(graph, std::move(nodeKernels), executorConfig) {} std::vector execute( ExecutionFrame& frame, std::vector inputs) override; std::vector executeWithPrefilledFrame( ExecutionFrame& frame) override; }; } // namespace torch::nativert