60 const circle::Tensor *input = miso_kernel.
input1();
62 const circle::Tensor *end = miso_kernel.
input3();
63 const circle::Tensor *strides = miso_kernel.
input4();
67 const circle::Tensor *output = miso_kernel.
output();
80 const circle::Tensor *input = miso_kernel.
input1();
82 const circle::Tensor *end = miso_kernel.
input3();
83 const circle::Tensor *strides = miso_kernel.
input4();
84 const circle::Tensor *output = miso_kernel.
output();
86 const int32_t dims = Tensor::num_dims(input);
89 const int32_t *begin_data =
91 const int32_t *end_data =
93 const int32_t *strides_data =
103 const auto *options = cur_op->builtin_options_as_StridedSliceOptions();
105 auto op_params = buildStridedSliceParams(dims, begin_data, end_data, strides_data, options);
107 switch (Tensor::element_type(input))
110 case DataType::FLOAT32:
112 kernels::getTensorData<float>(input_data),
113 kernels::getTensorData<float>(output_data));
128 kernels::getTensorData<int32_t>(input_data),
129 kernels::getTensorData<int32_t>(output_data));
132 assert(
false &&
"Unsupported type");
StridedSliceParams buildStridedSliceParams(const T *begin, const T *end, const T *strides, const uint32_t begin_mask, const uint32_t end_mask, const uint32_t shrink_axis_mask, const uint8_t rank)