S100 OpenExplorer

# #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 Name | Description
--- | ---
`dimensionSize` | Size of each dimension of the tensor.
`numDimensions` | Dimension of the tensor.

On This Page