# tensorplay.distributed.distributed_c10d.all_to_all

Source: https://www.tensorplay.cn/docs/generated/tensorplay.distributed.distributed_c10d.all_to_all.html

# tensorplay.distributed.distributed_c10d.all_to_all

tensorplay.distributed.distributed_c10d.all_to_all(output_tensor_list: [List](https://docs.python.org/3/library/typing.html#typing.List)[TensorBase], input_tensor_list: [List](https://docs.python.org/3/library/typing.html#typing.List)[TensorBase], group=None, async_op: [bool](https://docs.python.org/3/library/functions.html#bool) = False)[[source]](../_modules/tensorplay/distributed/distributed_c10d.html#all_to_all)

Scatters a list of tensors to ranks and collects one from each.

Mirrors ProcessGroupNCCL::alltoall: per-rank splits are the tensor
numels, executed as one grouped send/recv exchange.
