[][src]Struct tract_tensorflow::tfpb::tensorflow::SaverDef

pub struct SaverDef {
    pub filename_tensor_name: String,
    pub save_tensor_name: String,
    pub restore_op_name: String,
    pub max_to_keep: i32,
    pub sharded: bool,
    pub keep_checkpoint_every_n_hours: f32,
    pub version: i32,
}

Protocol buffer representing the configuration of a Saver.

Fields

filename_tensor_name: String

The name of the tensor in which to specify the filename when saving or restoring a model checkpoint.

save_tensor_name: String

The operation to run when saving a model checkpoint.

restore_op_name: String

The operation to run when restoring a model checkpoint.

max_to_keep: i32

Maximum number of checkpoints to keep. If 0, no checkpoints are deleted.

sharded: bool

Shard the save files, one per device that has Variable nodes.

keep_checkpoint_every_n_hours: f32

How often to keep an additional checkpoint. If not specified, only the last "max_to_keep" checkpoints are kept; if specified, in addition to keeping the last "max_to_keep" checkpoints, an additional checkpoint will be kept for every n hours of training.

version: i32

Methods

impl SaverDef[src]

pub fn version(&self) -> CheckpointFormatVersion[src]

Returns the enum value of version, or the default if the field is set to an invalid enum value.

pub fn set_version(&mut self, value: CheckpointFormatVersion)[src]

Sets version to the provided enum value.

Trait Implementations

impl Clone for SaverDef[src]

impl Debug for SaverDef[src]

impl Default for SaverDef[src]

impl Message for SaverDef[src]

impl PartialEq<SaverDef> for SaverDef[src]

impl StructuralPartialEq for SaverDef[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.