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).
Name of the data type (mainly useful for logging purposes).
One value for this data type.
One value for this data type.
ProtoBuf data type used in serialized representations of tensors.
ProtoBuf data type used in serialized representations of tensors.
Zero value for this data type.
Zero value for this data type.
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 boolean data type.
Returns true
if this data type represents a complex data types.
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 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 non-quantized integer data type.
Returns true
if this data type represents a numeric 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 quantized data type.
Returns true
if this data type represents a non-quantized unsigned 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 largest value that can be represented by this data type.
Returns the smallest 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.
Returns a data type that corresponds to this data type's real part.