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, }
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.
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,...)
Trait Implementations
impl PartialEq for DataType
[src]
fn eq(&self, __arg_0: &DataType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataType) -> bool
This method tests for !=
.
impl Eq for DataType
[src]
impl PartialOrd for DataType
[src]
fn partial_cmp(&self, __arg_0: &DataType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &DataType) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &DataType) -> bool
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
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &DataType) -> bool
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
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl Debug for DataType
[src]
impl Copy for DataType
[src]
impl Clone for DataType
[src]
fn clone(&self) -> DataType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more