Function Snpe_Util_CreateITensorDataSize¶
Defined in File SNPEUtil.h
Function Documentation¶
-
Snpe_ITensor_Handle_t Snpe_Util_CreateITensorDataSize(Snpe_TensorShape_Handle_t shapeHandle, const uint8_t *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
A handle to the created tensor