Struct SnpeUdo_OpDefinition_t

Struct Documentation

struct SnpeUdo_OpDefinition_t

This struct defines an operation. It is used for validation or creation of an operation. In case of using it for creation, the static params which are tensors contain pointers to the real data (weights, for example), and input/output tensors also include pointers to the buffers used.

Public Members

SnpeUdo_CoreType_t udoCoreType

The IP Core that the operation is defined for - CPU, GPU, DSP…

SnpeUdo_String_t operationType

Operation type.

uint32_t numOfStaticParams

The number of static parameters provided in the staticParams array. this number has to match the number provided by the UDO Registration library information

SnpeUdo_Param_t *staticParams

Array of static parameters.

uint32_t numOfInputs

The number of input parameters provided in inputs array. this number has to match the number provided by the UDO Registration library information

SnpeUdo_TensorParam_t *inputs

Array of input tensors, providing layout, data type, sizes, etc When used to create an operation, also contains the initial location of the data

uint32_t numOfOutputs

The number of output parameters provided in inputs array. this number has to match the number provided by the UDO Registration library information

SnpeUdo_TensorParam_t *outputs

Array of output tensors, providing layout, data type, sizes, etc When used to create an operation, also contains the initial location of the data