Function Snpe_IUserBuffer_GetStrides_Ref¶
Defined in File IUserBuffer.h
Function Documentation¶
-
Snpe_TensorShape_Handle_t Snpe_IUserBuffer_GetStrides_Ref(Snpe_IUserBuffer_Handle_t userBufferHandle)¶
Retrieves the total number of bytes between elements in each dimension if the buffer were to be interpreted as a multi-dimensional array.
- Parameters
userBufferHandle – [in] : Handle to access the UserBuffer
- Returns
A const reference to the number of bytes between elements in each dimension. e.g. A tightly packed tensor of floats with dimensions [4, 3, 2] would return strides of [24, 8, 4].
Warning
Do not modify the TensorShape returned by reference. Treat it as a const reference.