33constexpr uint32_t valueTensorIdx = 1;
45 const circle::Tensor *value;
46 const circle::Tensor *
output;
58 value = runtime_kernel.
inputs[valueTensorIdx];
60 assert(value !=
nullptr);
61 assert(output !=
nullptr);
63 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
67 value_data = runtime_kernel.
inputs_data[valueTensorIdx];
69 assert(value_data !=
nullptr);
70 assert(output_data !=
nullptr);
81 case circle::TensorType_FLOAT32:
84 core::utils::castOutputData<float>(output_data));
88 case circle::TensorType_INT32:
91 core::utils::castOutputData<int32_t>(output_data));
97 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
OMStatus Fill(const T *input_data, const core::OMRuntimeShape &output_shape, T *output_data)
core::OMRuntimeContext & runtime_context
core::OMRuntimeStorage & runtime_storage