cpu_communicator ¶
Classes¶
fastvideo.distributed.device_communicators.cpu_communicator.CpuCommunicator ¶
CpuCommunicator(cpu_group: ProcessGroup, device: device | None = None, device_group: ProcessGroup | None = None, unique_name: str = '')
Bases: DeviceCommunicatorBase
Source code in fastvideo/distributed/device_communicators/cpu_communicator.py
Methods:¶
fastvideo.distributed.device_communicators.cpu_communicator.CpuCommunicator.gather ¶
NOTE: We assume that the input tensor is on the same device across all the ranks. NOTE: dst is the local rank of the destination rank.