ONE - On-device Neural Engine
|
Namespaces | |
namespace | memory |
namespace | reader |
namespace | train |
namespace | utils |
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 | |
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) |
|
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 58 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 22 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 75 of file OMKernelType.cpp.
References onert_micro::UnsupportedOp.
Referenced by getBuilderId().
OMStatus onert_micro::core::getCustomOperatorByBuilderId | ( | core::OMBuilderID & | builderID, |
OMBuilderCustomID & | opcode | ||
) |
Definition at line 40 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().
onert_micro::core::OMDataType onert_micro::core::onertMicroDatatype | ( | const circle::TensorType | type | ) |
Definition at line 19 of file OMDataType.cpp.
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.