Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions torchft/process_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,20 @@ def allgather(
input_tensor: List[torch.Tensor],
opts: object,
) -> Work:
"""
Gathers tensors from the whole group in a list.

See torch.distributed.all_gather for more details.
"""
raise NotImplementedError("not implemented")

# pyre-fixme[14]: inconsistent override
def broadcast(self, tensor_list: List[torch.Tensor], opts: object) -> Work:
"""
Broadcasts the tensor to the whole group.

See torch.distributed.broadcast for more details.
"""
raise NotImplementedError("not implemented")

def broadcast_one(self, tensor: torch.Tensor, root: int) -> Work:
Expand Down