File UserBufferTensor.java

Definition (UserBufferTensor.java)

Full File Listing

namespace snpe
class UserBufferTensor

UserBufferTensor class representing user buffer tensors.

Subclassed by com.qualcomm.qti.snpe.TF16UserBufferTensor, com.qualcomm.qti.snpe.TF8UserBufferTensor

Public Functions

inline int[] getStrides ()

Returns the strides of the tensor.

Returns

shape array.

inline int getSize()

Returns the total size of the tensor.

Returns

the size of the tensor, in bytes.

abstract Encoding getEncoding ()

Returns the encoding type of the tensor.

Returns

the encoding type of the tensor

abstract void release ()

Releases the resources used by this tensor. After this call no other methods can be called on this instance!

Package Functions

inline  UserBufferTensor (final int size, final int[] strides)

Private Members

final int mSize
final int[] mStrides