#include <KernelGenerator.h>
Definition at line 37 of file KernelGenerator.h.
◆ KernelGenerator()
◆ generate()
Implements onert::backend::basic::KernelGeneratorBase.
Definition at line 51 of file KernelGenerator.cc.
52{
53 auto ret = std::make_unique<exec::FunctionSequence>();
54
55 assert(_tensor_builder->dynamicTensorManager());
56 assert(_tensor_reg);
57
58
59 auto dyn_ctx = std::make_shared<exec::FunctionSequence::DynamicTensorCtx>();
60 {
61 dyn_ctx->op = &_operations_ctx.
at(ind);
62 dyn_ctx->dynamic_shape_inferer = std::make_shared<exec::DynamicShapeInferer>(_tensor_reg);
63 }
64 ret->dynamic_tensor_ctx(dyn_ctx);
65
67 op.accept(*this);
70
71 for (
auto &&ind : (op.getInputs() | ir::
Remove::
UNDEFINED) + op.getOutputs())
72 {
73 auto tensor = _tensor_reg->getNativeTensor(ind);
74 if (tensor)
75 {
77 }
78 }
79 return ret;
80}
std::unique_ptr< exec::IFunction > _return_fn
const Operations & operations() const override
const Object & at(const Index &index) const
Get the object that is associated with the given index.
The documentation for this class was generated from the following files: