torch.cuda.comm.reduce_add
-
torch.cuda.comm.reduce_add(inputs, destination=None)[source] -
Sum tensors from multiple GPUs.
All inputs should have matching shapes, dtype, and layout. The output tensor will be of the same shape, dtype, and layout.
torch.cuda.comm.reduce_add(inputs, destination=None) [source]
Sum tensors from multiple GPUs.
All inputs should have matching shapes, dtype, and layout. The output tensor will be of the same shape, dtype, and layout.
© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.cuda.comm.reduce_add.html