|
ONE - On-device Neural Engine
|
Namespaces | |
| namespace | memory |
| namespace | reader |
| namespace | train |
| namespace | type_traits |
| namespace | utils |
Typedefs | |
| template<typename T > | |
| using | OMInputContext = OMTensorContext< const T, IOTensorData< const T > > |
| template<typename T > | |
| using | OMOutputContext = OMTensorContext< T, IOTensorData< T > > |
| using | OMAxisContext = OMTensorContext< uint32_t, OMAxisData< uint32_t > > |
Enumerations | |
| enum class | OMDataType { Unknown , U8 , U16 , U32 , U64 , S8 , S16 , S32 , S64 , FLOAT16 , FLOAT32 , FLOAT64 , BOOL } |
| "scalar" value type More... | |
| enum class | BroadcastableOpCategory : uint8_t { kNone , kNonBroadcast , kFirstInputBroadcastsFast , kSecondInputBroadcastsFast , kGenericBroadcast , kScalarFirstBroadcast , kScalarSecondBroadcast } |
| enum | OpTrainableRankType { ALL = 0 , ONLY_BIAS = 1 , UP_1_2_PART = 2 , LOWER_1_2_PART = 3 } |
| enum | OMKernelType { Normal , Inplace } |
| enum | OMBuilderCustomID { CUSTOM_custom_gru } |
| enum class | OMBuilderID { BuiltinOperatorsSize , Size } |
Functions | |
| template<typename T , class RuntimeKernel > | |
| IOTensorData< const T > | MakeInputData (RuntimeKernel &rtk, size_t input_idx) |
| template<typename T , class RuntimeKernel > | |
| IOTensorData< T > | MakeOutputData (RuntimeKernel &rtk, size_t output_idx) |
| template<typename IntType , class RuntimeKernel > | |
| OMAxisData< IntType > | MakeAxisData (RuntimeKernel &rtk, size_t axisTensorIdx) |
| OMDataType | onertMicroDatatype (const circle::TensorType type) |
| uint32_t | size (OMDataType data_type) |
| Returns the size of the data type. | |
| size_t | getOMDataTypeSize (OMDataType data_type) |
| OMStatus | getBuiltinOperatorBuilderId (const circle::BuiltinOperator &opcode, core::OMBuilderID &builderID) |
| OMStatus | getCustomOperatorBuilderId (const flatbuffers::String *custom_opcode, core::OMBuilderID &builderID) |
| OMStatus | getCustomOperatorByBuilderId (core::OMBuilderID &builderID, OMBuilderCustomID &opcode) |
| OMStatus | getBuilderId (const circle::OperatorCode *opcode, core::OMBuilderID &builderID) |
| template<typename T , class RuntimeKernel > | |
| OMInputContext< T > | MakeInputContext (RuntimeKernel &rtk, size_t inputIdx=0) |
| template<typename T , class RuntimeKernel > | |
| OMOutputContext< T > | MakeOutputContext (RuntimeKernel &rtk, size_t outputIdx=0) |
| template<class RuntimeKernel > | |
| OMAxisContext | MakeAxisContext (RuntimeKernel &rtk, size_t axisInputIdx=1) |
| using onert_micro::core::OMAxisContext = typedef OMTensorContext<uint32_t, OMAxisData<uint32_t> > |
Definition at line 109 of file OMRuntimeData.h.
| using onert_micro::core::OMInputContext = typedef OMTensorContext<const T, IOTensorData<const T> > |
Definition at line 104 of file OMRuntimeData.h.
| using onert_micro::core::OMOutputContext = typedef OMTensorContext<T, IOTensorData<T> > |
Definition at line 107 of file OMRuntimeData.h.
|
strong |
| Enumerator | |
|---|---|
| kNone | |
| kNonBroadcast | |
| kFirstInputBroadcastsFast | |
| kSecondInputBroadcastsFast | |
| kGenericBroadcast | |
| kScalarFirstBroadcast | |
| kScalarSecondBroadcast | |
Definition at line 28 of file OMKernelData.h.
|
strong |
| Enumerator | |
|---|---|
| BuiltinOperatorsSize | |
| Size | |
Definition at line 51 of file OMKernelType.h.
|
strong |
"scalar" value type
| Enumerator | |
|---|---|
| Unknown | |
| U8 | |
| U16 | |
| U32 | |
| U64 | |
| S8 | |
| S16 | |
| S32 | |
| S64 | |
| FLOAT16 | |
| FLOAT32 | |
| FLOAT64 | |
| BOOL | |
Definition at line 34 of file OMDataType.h.
| Enumerator | |
|---|---|
| Normal | |
| Inplace | |
Definition at line 38 of file OMKernelType.h.
| Enumerator | |
|---|---|
| ALL | |
| ONLY_BIAS | |
| UP_1_2_PART | |
| LOWER_1_2_PART | |
Definition at line 29 of file OMKernelType.h.
| OMStatus onert_micro::core::getBuilderId | ( | const circle::OperatorCode * | opcode, |
| core::OMBuilderID & | builderID | ||
| ) |
Definition at line 60 of file OMKernelType.cpp.
References getBuiltinOperatorBuilderId(), getCustomOperatorBuilderId(), onert_micro::Ok, and onert_micro::UnsupportedOp.
Referenced by onert_micro::import::OMKernelConfiguration::configureKernels(), onert_micro::train::OMBackpropExecute::runBackward(), and onert_micro::execute::OMKernelExecute::runForward().
| OMStatus onert_micro::core::getBuiltinOperatorBuilderId | ( | const circle::BuiltinOperator & | opcode, |
| core::OMBuilderID & | builderID | ||
| ) |
Definition at line 23 of file OMKernelType.cpp.
References onert_micro::Ok, and onert_micro::UnsupportedOp.
Referenced by getBuilderId().
| OMStatus onert_micro::core::getCustomOperatorBuilderId | ( | const flatbuffers::String * | custom_opcode, |
| core::OMBuilderID & | builderID | ||
| ) |
Definition at line 77 of file OMKernelType.cpp.
References flatbuffers::String::c_str(), and onert_micro::UnsupportedOp.
Referenced by getBuilderId().
| OMStatus onert_micro::core::getCustomOperatorByBuilderId | ( | core::OMBuilderID & | builderID, |
| OMBuilderCustomID & | opcode | ||
| ) |
Definition at line 42 of file OMKernelType.cpp.
References onert_micro::Ok, and onert_micro::UnsupportedOp.
|
inline |
Definition at line 179 of file OMDataType.h.
References size.
Referenced by onert_micro::core::memory::OMRuntimeAllocator::allocate(), and onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs().
| OMAxisContext onert_micro::core::MakeAxisContext | ( | RuntimeKernel & | rtk, |
| size_t | axisInputIdx = 1 |
||
| ) |
Definition at line 130 of file OMRuntimeData.h.
| OMAxisData< IntType > onert_micro::core::MakeAxisData | ( | RuntimeKernel & | rtk, |
| size_t | axisTensorIdx | ||
| ) |
Definition at line 149 of file OMCustomTensorData.h.
| OMInputContext< T > onert_micro::core::MakeInputContext | ( | RuntimeKernel & | rtk, |
| size_t | inputIdx = 0 |
||
| ) |
Definition at line 114 of file OMRuntimeData.h.
| IOTensorData< const T > onert_micro::core::MakeInputData | ( | RuntimeKernel & | rtk, |
| size_t | input_idx | ||
| ) |
Definition at line 123 of file OMCustomTensorData.h.
| OMOutputContext< T > onert_micro::core::MakeOutputContext | ( | RuntimeKernel & | rtk, |
| size_t | outputIdx = 0 |
||
| ) |
Definition at line 122 of file OMRuntimeData.h.
| IOTensorData< T > onert_micro::core::MakeOutputData | ( | RuntimeKernel & | rtk, |
| size_t | output_idx | ||
| ) |
Definition at line 136 of file OMCustomTensorData.h.
| onert_micro::core::OMDataType onert_micro::core::onertMicroDatatype | ( | const circle::TensorType | type | ) |
Definition at line 19 of file OMDataType.cpp.
References type.
Referenced by onert_micro::core::memory::OMRuntimeAllocator::allocate(), onert_micro::core::memory::OMRuntimeAllocator::allocateGraphInputs(), and onert_micro::execute::execute_reshape_common().
|
inline |
Returns the size of the data type.
sizeof(typename OMDataTypeImpl<DT>::Type). Definition at line 144 of file OMDataType.h.
References BOOL, FLOAT16, FLOAT32, FLOAT64, S16, S32, S64, S8, U16, U32, U64, and U8.