Typedef Snpe_ITensor_Handle_t

Typedef Documentation

typedef void *Snpe_ITensor_Handle_t

Represents a tensor which holds n-dimensional data. It is important to understand how the tensor data is represented in memory relative to the tensor dimensions. Tensors store data in memory in row-major order (i.e. the last tensor dimension is the fastest varying one). For example, if you have a two dimensional tensor with 3 rows and 2 columns (i.e. the tensor dimensions are 3,2 as returned in tensor dimension vectors) with the following data in terms rows and columns:

| 1 2 |

| 3 4 |

| 5 6 |

This data would be stored in memory as 1,2,3,4,5,6.