Struct SnpeUdo_TensorParam_t

Struct Documentation

struct SnpeUdo_TensorParam_t

A struct which defines a tensor parameter : name, data type, layout, quantization, more. Also holds a pointer to the tensor data.

Public Members

uint32_t *maxDimensions

The maximum allowable dimensions of the tensor. The memory held in tensorData is guaranteed to be large enough for this.

uint32_t *currDimensions

The current dimensions of the tensor. An operation may modify the current dimensions of its output, to indicate cases where the output has been “resized”. Note that for static parameters, the current and max dimensions must match.

SnpeUdo_QuantizeParams_t quantizeParams

Quantization params applicable to the tensor. Currently only supports Tensorflow quantization style.

uint32_t tensorRank

Number of dimensions to the tensor: 3D, 4D, etc.

SnpeUdo_DataType_t dataType

The parameter data type: float, int, etc.

SnpeUdo_TensorLayout_t layout

The tensor layout type: NCHW, NHWC, etc.

void *tensorData

Opaque pointer to tensor data. User may be required to re-interpret the pointer based on core-specific definitions.