TensorTypeInfo

public final class TensorTypeInfo

Registered information about a tensor type.

Public Methods

int
byteSize()
Returns the number of bytes required to store one element of the corresponding data type, -1 if variable.
DataType
dataType()
Returns the corresponding data type for this tensor type
boolean
isVariableLength()
Returns true if elements of the corresponding data type are of variable length (undefined number of bytes)
TensorMapper<T>
mapper()
Returns an object used to map raw tensors to a tensor of this type
Class<T>
type()
Returns the class of this tensor type

Inherited Methods

Public Methods

public int byteSize ()

Returns the number of bytes required to store one element of the corresponding data type, -1 if variable.

public DataType dataType ()

Returns the corresponding data type for this tensor type

public boolean isVariableLength ()

Returns true if elements of the corresponding data type are of variable length (undefined number of bytes)

public TensorMapper<T> mapper ()

Returns an object used to map raw tensors to a tensor of this type

public Class<T> type ()

Returns the class of this tensor type