17#ifndef __ONERT_BACKEND_TRAIN_KERNEL_GENERATOR_BASE_H__
18#define __ONERT_BACKEND_TRAIN_KERNEL_GENERATOR_BASE_H__
43#define OP(InternalName) \
44 void visit(const ir::train::operation::InternalName &) override \
46 throw std::runtime_error("KernelGenerator: NYI for operation '" #InternalName "'"); \
48#include "ir/train/Operations.lst"
53 std::unique_ptr<exec::train::ITrainableFunction>
_return_fn;
virtual ~KernelGeneratorBase()=default
virtual std::unique_ptr< exec::train::TrainableFnSequence > generate(ir::OperationIndex ind)=0
std::unique_ptr< exec::train::ITrainableFunction > _return_fn
KernelGeneratorBase(const ir::train::TrainableGraph &tgraph)
const ir::train::TrainableGraph & _tgraph