[][src]Enum tensorflow_proto::toco::IoDataType

#[repr(i32)]pub enum IoDataType {
    Unknown,
    Float,
    QuantizedUint8,
    Int32,
    Int64,
    String,
    QuantizedInt16,
    Bool,
    Complex64,
    Int8,
    Float16,
}

IODataType describes the numeric data types of input and output arrays of a model.

Variants

Unknown
Float

Float32, not quantized

QuantizedUint8

Uint8, quantized

Int32

Int32, not quantized

Int64

Int64, not quantized

String

String, not quantized

QuantizedInt16

Int16, quantized

Bool

Boolean

Complex64

Complex64, not quantized

Int8

Int8, quantized based on QuantizationParameters in schema.

Float16

Half precision float, not quantized.

Implementations

impl IoDataType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of IoDataType.

pub fn from_i32(value: i32) -> Option<IoDataType>[src]

Converts an i32 to a IoDataType, or None if value is not a valid variant.

Trait Implementations

impl Clone for IoDataType[src]

impl Copy for IoDataType[src]

impl Debug for IoDataType[src]

impl Default for IoDataType[src]

impl Eq for IoDataType[src]

impl Hash for IoDataType[src]

impl Ord for IoDataType[src]

impl PartialEq<IoDataType> for IoDataType[src]

impl PartialOrd<IoDataType> for IoDataType[src]

impl StructuralEq for IoDataType[src]

impl StructuralPartialEq for IoDataType[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?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.