Enum tfrecord::protos::VariableAggregation[][src]

#[repr(i32)]pub enum VariableAggregation {
    None,
    Sum,
    Mean,
    OnlyFirstReplica,
}

Indicates how a distributed variable will be aggregated.

Variants

None

NONE: This is the default, giving an error if you use a variable-update operation with multiple replicas.

Sum

SUM: Add the updates across replicas.

Mean

MEAN: Take the arithmetic mean (“average”) of the updates across replicas.

OnlyFirstReplica

ONLY_FIRST_REPLICA: This is for when every replica is performing the same update, but we only want to perform the update once. Used, e.g., for the global step counter.

Implementations

impl VariableAggregation[src]

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

Returns true if value is a variant of VariableAggregation.

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

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

Trait Implementations

impl Clone for VariableAggregation[src]

impl Copy for VariableAggregation[src]

impl Debug for VariableAggregation[src]

impl Default for VariableAggregation[src]

impl<'de> Deserialize<'de> for VariableAggregation[src]

impl Eq for VariableAggregation[src]

impl Hash for VariableAggregation[src]

impl Ord for VariableAggregation[src]

impl PartialEq<VariableAggregation> for VariableAggregation[src]

impl PartialOrd<VariableAggregation> for VariableAggregation[src]

impl Serialize for VariableAggregation[src]

impl StructuralEq for VariableAggregation[src]

impl StructuralPartialEq for VariableAggregation[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,