mlx.core.distributed.all_gather#
- all_gather(x: array, *, group: Group | None = None, stream: None | Stream | Device = None) array #
Gather arrays from all processes.
Gather the
x
arrays from all processes in the group and concatenate them along the first axis. The arrays should all have the same shape.- Parameters:
- Returns:
The concatenation of all
x
arrays.- Return type: