Enum tensorflow::DataType
[−]
[src]
pub enum DataType {
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,
}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.
Float32-bit floating point.
Double64-bit floating point.
Int3232-bit signed integer.
UInt88-bit unsigned integer.
Int1616-bit signed integer.
Int88-bit signed integer.
StringString.
Complex64Complex number composed of two 32-bit floats.
Int6464-bit signed integer.
BoolBoolean.
QInt8Quantized 8-bit signed integer.
QUInt8Quantized 8-bit unsigned integer.
QInt32Quantized 32-bit signed integer.
BFloat16Float32 truncated to 16 bits. Only for cast ops.
QInt16Quantized 16-bit signed integer.
QUInt16Quantized 16-bit unsigned integer.
UInt1616-bit unsigned integer.
Complex128Complex number composed of two 64-bit floats.
Half16-bit floating point.
ResourceTensorFlow Resource (name, container, device,...)
VariantA dynamic type similar to std::any::Any.
UInt3232-bit unsigned integer.
UInt6464-bit unsigned integer.
Trait Implementations
impl PartialEq for DataType[src]
fn eq(&self, __arg_0: &DataType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DataType) -> bool[src]
This method tests for !=.
impl Eq for DataType[src]
impl PartialOrd for DataType[src]
fn partial_cmp(&self, __arg_0: &DataType) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &DataType) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &DataType) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &DataType) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &DataType) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for DataType[src]
fn cmp(&self, __arg_0: &DataType) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Debug for DataType[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Copy for DataType[src]
impl Clone for DataType[src]
fn clone(&self) -> DataType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more