|
ONE - On-device Neural Engine
|
#include <ModelArgumentInfo.h>

Public Types | |
| enum | { POINTER , MEMORY , HAS_NO_VALUE , UNSPECIFIED } |
Public Member Functions | |
| int | setFromPointer (const Operand &operand, const ANeuralNetworksOperandType *type, void *buffer, uint32_t length) |
| int | setFromMemory (const Operand &operand, const ANeuralNetworksOperandType *type, uint32_t poolIndex, uint32_t offset, uint32_t length) |
| int | updateDimensionInfo (const Operand &operand, const ANeuralNetworksOperandType *newType) |
Data Fields | |
| enum ModelArgumentInfo:: { ... } | state = UNSPECIFIED |
| DataLocation | locationAndLength |
| std::vector< uint32_t > | dimensions |
| void * | buffer |
Definition at line 27 of file ModelArgumentInfo.h.
| anonymous enum |
| Enumerator | |
|---|---|
| POINTER | |
| MEMORY | |
| HAS_NO_VALUE | |
| UNSPECIFIED | |
Definition at line 38 of file ModelArgumentInfo.h.
| int ModelArgumentInfo::setFromMemory | ( | const Operand & | operand, |
| const ANeuralNetworksOperandType * | type, | ||
| uint32_t | poolIndex, | ||
| uint32_t | offset, | ||
| uint32_t | length | ||
| ) |
Definition at line 59 of file ModelArgumentInfo.cpp.
References ANEURALNETWORKS_BAD_DATA, ANEURALNETWORKS_NO_ERROR, buffer, dimensions, locationAndLength, LOG, MEMORY, offset(), DataLocation::poolIndex, sizeOfData(), state, Operand::type, type, and updateDimensionInfo().
| int ModelArgumentInfo::setFromPointer | ( | const Operand & | operand, |
| const ANeuralNetworksOperandType * | type, | ||
| void * | buffer, | ||
| uint32_t | length | ||
| ) |
Definition at line 24 of file ModelArgumentInfo.cpp.
References ANEURALNETWORKS_BAD_DATA, ANEURALNETWORKS_NO_ERROR, buffer, dimensions, HAS_NO_VALUE, locationAndLength, LOG, POINTER, DataLocation::poolIndex, sizeOfData(), state, Operand::type, type, and updateDimensionInfo().
| int ModelArgumentInfo::updateDimensionInfo | ( | const Operand & | operand, |
| const ANeuralNetworksOperandType * | newType | ||
| ) |
Definition at line 81 of file ModelArgumentInfo.cpp.
References ANEURALNETWORKS_BAD_DATA, ANEURALNETWORKS_NO_ERROR, ASSERT, ANeuralNetworksOperandType::dimensionCount, ANeuralNetworksOperandType::dimensions, dimensions, Operand::dimensions, LOG, ANeuralNetworksOperandType::type, and Operand::type.
Referenced by setFromMemory(), and setFromPointer().
| void* ModelArgumentInfo::buffer |
Definition at line 49 of file ModelArgumentInfo.h.
Referenced by setFromMemory(), and setFromPointer().
| std::vector<uint32_t> ModelArgumentInfo::dimensions |
Definition at line 48 of file ModelArgumentInfo.h.
Referenced by setFromMemory(), setFromPointer(), and updateDimensionInfo().
| DataLocation ModelArgumentInfo::locationAndLength |
Definition at line 46 of file ModelArgumentInfo.h.
Referenced by setFromMemory(), and setFromPointer().
| enum { ... } ModelArgumentInfo::state |
Referenced by setFromMemory(), and setFromPointer().