Enum tensorflow::DataType
source · pub enum DataType {
Show 24 variants
UnrecognizedEnumValue(c_uint),
Float,
Double,
Int32,
UInt8,
Int16,
Int8,
String,
Complex64,
Int64,
Bool,
QInt8,
QUInt8,
QInt32,
BFloat16,
QInt16,
QUInt16,
UInt16,
Complex128,
Half,
Resource,
Variant,
UInt32,
UInt64,
}
Expand description
Type of a single tensor element.
Variants§
UnrecognizedEnumValue(c_uint)
Represents an unrecognized value.
This allows such values to come from the C API and be sent back to the C API without loss in case new values are added in the future.
Float
32-bit floating point.
Double
64-bit floating point.
Int32
32-bit signed integer.
UInt8
8-bit unsigned integer.
Int16
16-bit signed integer.
Int8
8-bit signed integer.
String
String.
Complex64
Complex number composed of two 32-bit floats.
Int64
64-bit signed integer.
Bool
Boolean.
QInt8
Quantized 8-bit signed integer.
QUInt8
Quantized 8-bit unsigned integer.
QInt32
Quantized 32-bit signed integer.
BFloat16
Float32 truncated to 16 bits. Only for cast ops. Note that this is not the same as Half. BFloat16 is not an IEEE-754 16-bit float. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/bfloat16.h for details.
QInt16
Quantized 16-bit signed integer.
QUInt16
Quantized 16-bit unsigned integer.
UInt16
16-bit unsigned integer.
Complex128
Complex number composed of two 64-bit floats.
Half
16-bit floating point.
Resource
TensorFlow Resource (name, container, device,…)
Variant
A dynamic type similar to std::any::Any.
UInt32
32-bit unsigned integer.
UInt64
64-bit unsigned integer.
Trait Implementations§
source§impl Ord for DataType
impl Ord for DataType
source§impl PartialEq<DataType> for DataType
impl PartialEq<DataType> for DataType
source§impl PartialOrd<DataType> for DataType
impl PartialOrd<DataType> for DataType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more