ONE - On-device Neural Engine
|
#include <OMRuntimeKernel.h>
Public Member Functions | |
OMRuntimeKernel ()=default | |
OMRuntimeKernel (const OMRuntimeKernel &)=delete | |
OMRuntimeKernel (OMRuntimeKernel &&)=delete | |
~OMRuntimeKernel ()=default | |
OMRuntimeKernel & | operator= (const OMRuntimeKernel &)=delete |
OMRuntimeKernel && | operator= (const OMRuntimeKernel &&)=delete |
OMStatus | readKernel (uint16_t op_index, core::OMRuntimeContext &runtime_context) |
OMStatus | getDataFromStorage (uint16_t op_index, core::OMRuntimeStorage &storage, core::OMRuntimeContext &context) |
Data Fields | |
const circle::Tensor * | inputs [maxInputSize] = {nullptr} |
const circle::Tensor * | outputs [maxOutputSize] = {nullptr} |
uint8_t * | inputs_data [maxInputSize] = {nullptr} |
uint8_t * | outputs_data [maxOutputSize] = {nullptr} |
int32_t | inputs_index [maxInputSize] = {-1} |
int32_t | outputs_index [maxOutputSize] = {-1} |
uint32_t | outputs_num = 0 |
uint32_t | inputs_num = 0 |
const circle::Operator * | first_operator = nullptr |
Definition at line 34 of file OMRuntimeKernel.h.
|
default |
|
delete |
|
delete |
|
default |
OMStatus onert_micro::execute::OMRuntimeKernel::getDataFromStorage | ( | uint16_t | op_index, |
core::OMRuntimeStorage & | storage, | ||
core::OMRuntimeContext & | context | ||
) |
Definition at line 67 of file OMRuntimeKernel.cpp.
References onert_micro::core::OMRuntimeContext::getConstDataByTensorIndex(), onert_micro::core::OMRuntimeStorage::getDataByTensorIndex(), onert_micro::core::OMRuntimeStorage::getKernelType(), onert_micro::core::Inplace, onert_micro::Ok, onert_micro::core::OMRuntimeStorage::removeTensorFromTensorIndexToData(), and onert_micro::core::OMRuntimeStorage::saveDataToTensorIndex().
Referenced by onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), onert_micro::execute::readKernelDataTISO(), onert_micro::execute::SISOHeader(), and onert_micro::execute::TISOHeader().
|
delete |
|
delete |
OMStatus onert_micro::execute::OMRuntimeKernel::readKernel | ( | uint16_t | op_index, |
core::OMRuntimeContext & | runtime_context | ||
) |
Definition at line 22 of file OMRuntimeKernel.cpp.
References first_operator, onert_micro::core::OMRuntimeContext::getCircleOperatorAt(), onert_micro::core::OMRuntimeContext::getTensorByIndex(), inputs, inputs_index, inputs_num, onert_micro::Ok, outputs, outputs_index, outputs_num, and onert_micro::UnknownError.
Referenced by onert_micro::import::helpers::configure_arg_kernel_common(), onert_micro::import::helpers::configure_floor_kernel_common(), onert_micro::import::helpers::configure_pad_kernel_common(), onert_micro::import::helpers::configure_pooling_kernel_common(), onert_micro::import::helpers::configure_SISO_kernel(), onert_micro::import::helpers::configure_spaces_batches_nd_kernel_common(), onert_micro::import::helpers::configure_TISO_kernel(), onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), onert_micro::execute::readKernelDataTISO(), onert_micro::import::SISOHeader(), onert_micro::execute::SISOHeader(), onert_micro::import::TISOHeader(), and onert_micro::execute::TISOHeader().
const circle::Operator* onert_micro::execute::OMRuntimeKernel::first_operator = nullptr |
Definition at line 63 of file OMRuntimeKernel.h.
Referenced by onert_micro::import::helpers::configure_pooling_kernel_common(), onert_micro::execute::execute_relu_common(), and readKernel().
const circle::Tensor* onert_micro::execute::OMRuntimeKernel::inputs[maxInputSize] = {nullptr} |
Definition at line 51 of file OMRuntimeKernel.h.
Referenced by onert_micro::import::helpers::configure_arg_kernel_common(), onert_micro::import::helpers::configure_floor_kernel_common(), onert_micro::import::helpers::configure_pad_kernel_common(), onert_micro::import::helpers::configure_pooling_kernel_common(), onert_micro::import::helpers::configure_SISO_kernel(), onert_micro::import::helpers::configure_spaces_batches_nd_kernel_common(), onert_micro::import::helpers::configure_TISO_kernel(), onert_micro::execute::evalQuantizedComparisonGeneric(), onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), validate_onnx2circle.OnnxRunner::feed_random_inputs(), onert_micro::execute::readDataKernel(), readKernel(), onert_micro::execute::readKernelDataTISO(), package.infer.session::set_inputs(), onert_micro::import::SISOHeader(), onert_micro::execute::SISOHeader(), onert_micro::import::TISOHeader(), and onert_micro::execute::TISOHeader().
uint8_t* onert_micro::execute::OMRuntimeKernel::inputs_data[maxInputSize] = {nullptr} |
Definition at line 54 of file OMRuntimeKernel.h.
Referenced by onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), validate_onnx2circle.OnnxRunner::feed_random_inputs(), onert_micro::execute::readDataKernel(), onert_micro::execute::readKernelDataTISO(), and onert_micro::execute::SISOHeader().
int32_t onert_micro::execute::OMRuntimeKernel::inputs_index[maxInputSize] = {-1} |
uint32_t onert_micro::execute::OMRuntimeKernel::inputs_num = 0 |
Definition at line 61 of file OMRuntimeKernel.h.
Referenced by readKernel().
const circle::Tensor* onert_micro::execute::OMRuntimeKernel::outputs[maxOutputSize] = {nullptr} |
Definition at line 52 of file OMRuntimeKernel.h.
Referenced by onert_micro::import::helpers::configure_arg_kernel_common(), onert_micro::import::helpers::configure_floor_kernel_common(), onert_micro::import::helpers::configure_pad_kernel_common(), onert_micro::import::helpers::configure_pooling_kernel_common(), onert_micro::import::helpers::configure_SISO_kernel(), onert_micro::import::helpers::configure_spaces_batches_nd_kernel_common(), onert_micro::import::helpers::configure_TISO_kernel(), onert_micro::execute::evalQuantizedComparisonGeneric(), onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), onert_micro::execute::readDataKernel(), readKernel(), onert_micro::execute::readKernelDataTISO(), package.infer.session::set_outputs(), onert_micro::import::SISOHeader(), onert_micro::execute::SISOHeader(), onert_micro::import::TISOHeader(), and onert_micro::execute::TISOHeader().
uint8_t* onert_micro::execute::OMRuntimeKernel::outputs_data[maxOutputSize] = {nullptr} |
Definition at line 55 of file OMRuntimeKernel.h.
Referenced by onert_micro::execute::execute_arg_common(), onert_micro::execute::execute_relu_common(), onert_micro::execute::execute_reshape_common(), onert_micro::execute::readDataKernel(), onert_micro::execute::readKernelDataTISO(), and onert_micro::execute::SISOHeader().
int32_t onert_micro::execute::OMRuntimeKernel::outputs_index[maxOutputSize] = {-1} |
uint32_t onert_micro::execute::OMRuntimeKernel::outputs_num = 0 |
Definition at line 60 of file OMRuntimeKernel.h.
Referenced by readKernel().