[−][src]Enum tensorflow::DataType
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,...)
Variant
A dynamic type similar to std::any::Any.
UInt32
32-bit unsigned integer.
UInt64
64-bit unsigned integer.
Trait Implementations
impl PartialEq<DataType> for DataType
[src]
impl Eq for DataType
[src]
impl PartialOrd<DataType> for DataType
[src]
fn partial_cmp(&self, other: &DataType) -> Option<Ordering>
[src]
fn lt(&self, other: &DataType) -> bool
[src]
fn le(&self, other: &DataType) -> bool
[src]
fn gt(&self, other: &DataType) -> bool
[src]
fn ge(&self, other: &DataType) -> bool
[src]
impl Ord for DataType
[src]
fn cmp(&self, other: &DataType) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Returns max if self is greater than max, and min if self is less than min. Otherwise this will return self. Panics if min > max. Read more
impl Clone for DataType
[src]
fn clone(&self) -> DataType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DataType
[src]
impl Debug for DataType
[src]
impl Display for DataType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,