Function Snpe_Util_CreateITensor_NV21¶
Defined in File SNPEUtil.h
Function Documentation¶
-
Snpe_ITensor_Handle_t Snpe_Util_CreateITensor_NV21(Snpe_TensorShape_Handle_t shapeHandle, unsigned char *data, size_t dataSize)¶
Create a new ITensor with specific data. (i.e. the tensor data is contiguous in memory). This tensor is primarily used to create a tensor where tensor size can’t be computed directly from dimension. One such example is NV21-formatted image, or any YUV formatted image
- Parameters
shapeHandle – [in] The dimensions for the tensor in which the last element of the vector represents the fastest varying dimension and the zeroth element represents the slowest varying, etc.
data – [in] The actual data with which the Tensor object is filled.
dataSize – [in] The size of data
- Returns
the created tensor