tf.compat.v1.tpu.cross_replica_sum

View source on GitHub

Sum the input tensor across replicas according to group_assignment.

tf.compat.v1.tpu.cross_replica_sum(
    x, group_assignment=None, name=None
)

Args:

Returns:

A Tensor which is summed across replicas.