[][src]Enum tensorflow::DataType

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.

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 Default for DataType[src]

impl Clone for DataType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for DataType[src]

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

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Copy for DataType[src]

impl Eq for DataType[src]

impl PartialOrd<DataType> for DataType[src]

impl PartialEq<DataType> for DataType[src]

impl Debug for DataType[src]

impl Display for DataType[src]

Auto Trait Implementations

impl Send for DataType

impl Sync for DataType

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]