35constexpr uint32_t inputTensorIdx = 0;
36constexpr uint32_t axisTensorIdx = 2;
47 const circle::Tensor *
input;
48 const circle::Tensor *axis;
49 const circle::Tensor *
output;
63 axis = runtime_kernel.
inputs[axisTensorIdx];
65 assert(input !=
nullptr);
66 assert(axis !=
nullptr);
67 assert(output !=
nullptr);
69 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
74 axis_data = runtime_kernel.
inputs_data[axisTensorIdx];
75 assert(input_data !=
nullptr);
76 assert(axis_data !=
nullptr);
80 for (uint32_t i = 0; i < params.num_outputs; ++i)
90 int32_t axis_value = axis_data[0];
93 axis_value += input_shape.dimensionsCount() + 1;
96 switch (
input->type())
99 case circle::TensorType_FLOAT32:
100 status = pal::Split<float>(params, input_shape, core::utils::castInputData<float>(input_data),
107 assert(
false &&
"Unsupported type.");
uint8_t * outputs_data[maxOutputSize]
OMStatus getDataFromStorage(uint16_t op_index, core::OMRuntimeStorage &storage, core::OMRuntimeContext &context)
uint8_t * inputs_data[maxInputSize]
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]
const luci_interpreter::RuntimeShape output_shape
constexpr uint32_t outputTensorIdx
core::OMRuntimeContext & runtime_context
core::OMRuntimeStorage & runtime_storage