INNER CODE UNIT · Python
allgather
horovod/horovod · horovod/keras/__init__.py:225
def allgather(value, name=None):
"""
Perform an allgather on a tensor-compatible value.
The concatenation is done on the first dimension, so the input values on the
different processes must have the same rank and shape, except for the first
dimension, which is allowed to be different.
Arguments:
value: A tensor-compatible value to gather.
name: Optional name prefix for the constants created by this operation.
"""
return _impl.allgather(K, value, name)
def broadcast(value, root_rank, name=None):
"""
Perform a broadcast on a tensor-compatible value.