28 const std::shared_ptr<TensorBuilder> &tensor_builder,
29 const std::shared_ptr<basic::TensorRegistry> &tensor_reg,
30 const std::shared_ptr<ExternalContext> &external_context)
31 : basic::KernelGeneratorBase{graph}, _ctx(graph.operands()), _operations_ctx{graph.operations()},
32 _tensor_builder(tensor_builder), _tensor_reg{tensor_reg}, _external_context(external_context)
39 auto ret = std::make_unique<exec::FunctionSequence>();
41 assert(_tensor_builder->dynamicTensorManager());
45 auto dyn_ctx = std::make_shared<exec::FunctionSequence::DynamicTensorCtx>();
47 dyn_ctx->op = &_operations_ctx.
at(ind);
48 dyn_ctx->dynamic_shape_inferer = std::make_shared<exec::DynamicShapeInferer>(_tensor_reg);
50 ret->dynamic_tensor_ctx(dyn_ctx);
59 auto tensor = _tensor_reg->getNativeTensor(ind);
62 tensor->increase_ref();