Function Snpe_Util_CreateITensor¶
Defined in File SNPEUtil.h
Function Documentation¶
-
Snpe_ITensor_Handle_t Snpe_Util_CreateITensor(Snpe_TensorShape_Handle_t shapeHandle)¶
Creates a new ITensor with uninitialized data.
ITensor buffer size assumes float32 encoding for each element. (i.e., a tensor with dimensions (2,3) will be represented by (2 * 3) * 4 = 24 bytes in memory)
The strides for the tensor will match the tensor dimensions (i.e., the tensor data is contiguous in memory).
- 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.
- Returns
The created tensor