description: Indicates how a distributed variable will be aggregated.

tf.VariableAggregation

Indicates how a distributed variable will be aggregated.

tf.distribute.Strategy distributes a model by making multiple copies (called "replicas") acting data-parallel on different elements of the input batch. When performing some variable-update operation, say var.assign_add(x), in a model, we need to resolve how to combine the different values for x computed in the different replicas.

MEAN tf.VariableAggregation
NONE tf.VariableAggregation
ONLY_FIRST_REPLICA tf.VariableAggregation
SUM tf.VariableAggregation