public enum VariableAggregation extends Enum<VariableAggregation> implements com.google.protobuf.ProtocolMessageEnum
Indicates how a distributed variable will be aggregated.Protobuf enum
tensorflow.VariableAggregation
Enum Constant and Description |
---|
UNRECOGNIZED |
VARIABLE_AGGREGATION_MEAN
`MEAN`: Take the arithmetic mean ("average") of the updates across
replicas.
|
VARIABLE_AGGREGATION_NONE
`NONE`: This is the default, giving an error if you use a
variable-update operation with multiple replicas.
|
VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA
`ONLY_FIRST_REPLICA`: This is for when every replica is performing the same
update, but we only want to perform the update once.
|
VARIABLE_AGGREGATION_SUM
`SUM`: Add the updates across replicas.
|
Modifier and Type | Field and Description |
---|---|
static int |
VARIABLE_AGGREGATION_MEAN_VALUE
`MEAN`: Take the arithmetic mean ("average") of the updates across
replicas.
|
static int |
VARIABLE_AGGREGATION_NONE_VALUE
`NONE`: This is the default, giving an error if you use a
variable-update operation with multiple replicas.
|
static int |
VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA_VALUE
`ONLY_FIRST_REPLICA`: This is for when every replica is performing the same
update, but we only want to perform the update once.
|
static int |
VARIABLE_AGGREGATION_SUM_VALUE
`SUM`: Add the updates across replicas.
|
Modifier and Type | Method and Description |
---|---|
static VariableAggregation |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<VariableAggregation> |
internalGetValueMap() |
static VariableAggregation |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static VariableAggregation |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static VariableAggregation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VariableAggregation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VariableAggregation VARIABLE_AGGREGATION_NONE
`NONE`: This is the default, giving an error if you use a variable-update operation with multiple replicas.
VARIABLE_AGGREGATION_NONE = 0;
public static final VariableAggregation VARIABLE_AGGREGATION_SUM
`SUM`: Add the updates across replicas.
VARIABLE_AGGREGATION_SUM = 1;
public static final VariableAggregation VARIABLE_AGGREGATION_MEAN
`MEAN`: Take the arithmetic mean ("average") of the updates across replicas.
VARIABLE_AGGREGATION_MEAN = 2;
public static final VariableAggregation VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA
`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.
VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA = 3;
public static final VariableAggregation UNRECOGNIZED
public static final int VARIABLE_AGGREGATION_NONE_VALUE
`NONE`: This is the default, giving an error if you use a variable-update operation with multiple replicas.
VARIABLE_AGGREGATION_NONE = 0;
public static final int VARIABLE_AGGREGATION_SUM_VALUE
`SUM`: Add the updates across replicas.
VARIABLE_AGGREGATION_SUM = 1;
public static final int VARIABLE_AGGREGATION_MEAN_VALUE
`MEAN`: Take the arithmetic mean ("average") of the updates across replicas.
VARIABLE_AGGREGATION_MEAN = 2;
public static final int VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA_VALUE
`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.
VARIABLE_AGGREGATION_ONLY_FIRST_REPLICA = 3;
public static VariableAggregation[] values()
for (VariableAggregation c : VariableAggregation.values()) System.out.println(c);
public static VariableAggregation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static VariableAggregation valueOf(int value)
forNumber(int)
instead.public static VariableAggregation forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<VariableAggregation> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static VariableAggregation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2015–2019. All rights reserved.