35constexpr uint32_t inputTensorIdx = 0;
46 const circle::Tensor *
input;
47 const circle::Tensor *
output;
52 const circle::UnpackOptions *
options;
63 assert(input !=
nullptr);
64 assert(output !=
nullptr);
66 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
71 assert(input_data !=
nullptr);
74 params.num_outputs =
options->num();
76 for (uint32_t i = 0; i < params.num_outputs; ++i)
85 int32_t axis_value =
options->axis();
87 switch (
input->type())
90 case circle::TensorType_FLOAT32:
92 pal::Unpack<float>(params, input_shape, core::utils::castInputData<float>(input_data),
97 case circle::TensorType_INT8:
99 pal::Unpack<int8_t>(params, input_shape, core::utils::castInputData<int8_t>(input_data),
106 assert(
false &&
"Unsupported type.");
uint8_t * outputs_data[maxOutputSize]
const circle::Operator * first_operator
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