Size in bytes of each value with this data type.
Size in bytes of each value with this data type. Returns -1
if the size is not available.
Name of the data type (mainly useful for logging purposes).
ProtoBuf data type used in serialized representations of tensors.
Casts the provided value to this data type.
Casts the provided value to this data type.
Note that this method allows downcasting.
Value to cast.
Casted value.
UnsupportedOperationException
For unsupported data types on the Scala side.
Returns true
if this data type represents a boolean data type.
Returns true
if this data type represents a complex data types.
Returns true
if this data type represents a non-quantized floating-point data type.
Returns true
if this data type represents a non-quantized integer data type.
Returns true
if this data type represents a numeric data type.
Returns true
if this data type represents a quantized data type.
Returns true
if this data type represents a non-quantized unsigned data type.
Returns the largest value that can be represented by this data type.
Returns the smallest value that can be represented by this data type.
Returns a data type that corresponds to this data type's real part.
Represents the data type of the elements in a tensor.