Skip to content

Commit

Permalink
Fix pyi annotation for ProcessGroupGloo.Options (pytorch#132080)
Browse files Browse the repository at this point in the history
This PR fixes the pyi annotation for `ProcessGroupGloo.Options` based on the definition in the `torch/csrc/distributed/c10d/init.cpp` file.

Fixes pytorch#132054

Pull Request resolved: pytorch#132080
Approved by: https://github.com/Skylion007
  • Loading branch information
ishon19 authored and pytorchmergebot committed Jul 30, 2024
1 parent 499ead9 commit 12b67bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion torch/_C/_distributed_c10d.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,12 @@ def _round_robin_process_groups(

class ProcessGroupGloo(Backend):
class Device: ...
class Options: ...

class Options(ProcessGroup.Options):
devices: list[ProcessGroupGloo.Device]
threads: int

def __init__(self): ...

def __init__(
self,
Expand Down

0 comments on commit 12b67bd

Please sign in to comment.