[][src]Enum tract_tensorflow::tfpb::tensorflow::saver_def::CheckpointFormatVersion

#[repr(i32)]pub enum CheckpointFormatVersion {
    Legacy,
    V1,
    V2,
}

A version number that identifies a different on-disk checkpoint format. Usually, each subclass of BaseSaverBuilder works with a particular version/format. However, it is possible that the same builder may be upgraded to support a newer checkpoint format in the future.

Variants

Legacy

Internal legacy format.

V1

Deprecated format: tf.Saver() which works with tensorflow::table::Table.

V2

Current format: more efficient.

Implementations

impl CheckpointFormatVersion[src]

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

Returns true if value is a variant of CheckpointFormatVersion.

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

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

Trait Implementations

impl Clone for CheckpointFormatVersion[src]

impl Copy for CheckpointFormatVersion[src]

impl Debug for CheckpointFormatVersion[src]

impl Default for CheckpointFormatVersion[src]

impl Eq for CheckpointFormatVersion[src]

impl From<CheckpointFormatVersion> for i32[src]

impl Hash for CheckpointFormatVersion[src]

impl Ord for CheckpointFormatVersion[src]

impl PartialEq<CheckpointFormatVersion> for CheckpointFormatVersion[src]

impl PartialOrd<CheckpointFormatVersion> for CheckpointFormatVersion[src]

impl StructuralEq for CheckpointFormatVersion[src]

impl StructuralPartialEq for CheckpointFormatVersion[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[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.