public final enum
VariableAggregation
Indicates how a distributed variable will be aggregated.
tensorflow.VariableAggregation
Constants
int | VARIABLE_AGGREGATION_MEAN_VALUE | `MEAN`: Take the arithmetic mean ("average") of the updates across replicas. |
int | VARIABLE_AGGREGATION_NONE_VALUE | `NONE`: This is the default, giving an error if you use a variable-update operation with multiple replicas. |
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. |
int | VARIABLE_AGGREGATION_SUM_VALUE | `SUM`: Add the updates across replicas. |
Inherited Methods
final int |
compareTo(VariableAggregation arg0)
|
int |
compareTo(Object arg0)
|
final boolean |
equals(Object arg0)
|
final Class<VariableAggregation> |
getDeclaringClass()
|
final int |
hashCode()
|
final String |
name()
|
final int |
ordinal()
|
String |
toString()
|
static <T extends Enum<T>> T |
valueOf(Class<T> arg0, String arg1)
|
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract int |
compareTo(VariableAggregation arg0)
|
Enum Values
public static final VariableAggregation UNRECOGNIZED
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_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_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 VARIABLE_AGGREGATION_SUM
`SUM`: Add the updates across replicas.
VARIABLE_AGGREGATION_SUM = 1;
Constants
public static final int VARIABLE_AGGREGATION_MEAN_VALUE
`MEAN`: Take the arithmetic mean ("average") of the updates across replicas.
VARIABLE_AGGREGATION_MEAN = 2;
Constant Value:
2
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;
Constant Value:
0
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;
Constant Value:
3
public static final int VARIABLE_AGGREGATION_SUM_VALUE
`SUM`: Add the updates across replicas.
VARIABLE_AGGREGATION_SUM = 1;
Constant Value:
1