[][src]Enum tract_tensorflow::tfpb::tensorflow::VariableSynchronization

#[repr(i32)]
pub enum VariableSynchronization {
    Auto,
    None,
    OnWrite,
    OnRead,
}

Indicates when a distributed variable will be synced.

Variants

Auto

AUTO: Indicates that the synchronization will be determined by the current DistributionStrategy (eg. With MirroredStrategy this would be ON_WRITE).

None

NONE: Indicates that there will only be one copy of the variable, so there is no need to sync.

OnWrite

ON_WRITE: Indicates that the variable will be updated across devices every time it is written.

OnRead

ON_READ: Indicates that the variable will be aggregated across devices when it is read (eg. when checkpointing or when evaluating an op that uses the variable).

Methods

impl VariableSynchronization[src]

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

Returns true if value is a variant of VariableSynchronization.

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

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

Trait Implementations

impl Clone for VariableSynchronization[src]

impl Copy for VariableSynchronization[src]

impl Debug for VariableSynchronization[src]

impl Default for VariableSynchronization[src]

impl Eq for VariableSynchronization[src]

impl From<VariableSynchronization> for i32[src]

impl Hash for VariableSynchronization[src]

impl Ord for VariableSynchronization[src]

impl PartialEq<VariableSynchronization> for VariableSynchronization[src]

impl PartialOrd<VariableSynchronization> for VariableSynchronization[src]

impl StructuralEq for VariableSynchronization[src]

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