32constexpr uint32_t inputTensorIdx = 0;
33constexpr uint32_t beginTensorIdx = 1;
34constexpr uint32_t endTensorIdx = 2;
35constexpr uint32_t stridesTensorIdx = 3;
42onert_micro::import::configure_kernel_CircleStridedSlice(
const OMConfigureArgs &config_args)
45 uint16_t op_index = config_args.kernel_index;
52 const circle::Tensor *
input = runtime_kernel.
inputs[inputTensorIdx];
53 const circle::Tensor *
begin = runtime_kernel.
inputs[beginTensorIdx];
54 const circle::Tensor *
end = runtime_kernel.
inputs[endTensorIdx];
55 const circle::Tensor *strides = runtime_kernel.
inputs[stridesTensorIdx];
59 assert(input !=
nullptr);
60 assert(
begin !=
nullptr);
61 assert(end !=
nullptr);
62 assert(strides !=
nullptr);
63 assert(output !=
nullptr);
65 status = utils::checkCondition(
input->type() ==
output->type());
69 status = utils::checkCondition(
begin->type() == circle::TensorType_INT32 and
70 end->type() == circle::TensorType_INT32 and
71 strides->type() == circle::TensorType_INT32);
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]
constexpr uint32_t outputTensorIdx
ShapeIterator end(const Shape &s)