hbDNNTensorShape

typedef struct { int32_t dimensionSize[HB_DNN_TENSOR_MAX_DIMENSIONS]; int32_t numDimensions; } hbDNNTensorShape;

Tensor shape.

For example, a tensor with numDimensions=4 and data layout 1x4x224x224 will have the dimensionSize array storing the data in order as follows: dimensionSize[0]=1, dimensionSize[1]=4, dimensionSize[2]=224, dimensionSize[3]=224.

  • Member
Member NameDescription
dimensionSizeSize of each dimension of the tensor.
numDimensionsDimension of the tensor.