33 auto ret = std::make_unique<exec::FunctionSequence>();
35 assert(_tensor_builder->dynamicTensorManager());
39 auto dyn_ctx = std::make_shared<exec::FunctionSequence::DynamicTensorCtx>();
41 dyn_ctx->op = &_operations_ctx.
at(ind);
42 dyn_ctx->dynamic_shape_inferer = std::make_shared<exec::DynamicShapeInferer>(_tensor_reg);
44 ret->dynamic_tensor_ctx(dyn_ctx);
53 auto tensor = _tensor_reg->getNativeTensor(ind);
56 tensor->increase_ref();
63 const std::shared_ptr<TensorBuilder> &tensor_builder,
64 const std::shared_ptr<basic::TensorRegistry> &tensor_reg,
65 const std::shared_ptr<ExternalContext> &external_context)
66 : basic::KernelGeneratorBase{graph}, _ctx(graph.operands()), _operations_ctx{graph.operations()},
67 _tensor_builder(tensor_builder), _tensor_reg{tensor_reg}, _external_context(external_context)