Skip to content

Commit e336db5

Browse files
committed
fix: apply lintrunner
1 parent 4abb832 commit e336db5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

torch/distributed/distributed_c10d.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,11 +1342,13 @@ def get_backend(group: Optional[ProcessGroup] = None) -> Backend:
13421342
pg = group or _get_default_group()
13431343
if _rank_not_in_group(pg):
13441344
raise ValueError("Invalid process group specified")
1345-
1345+
13461346
pg_store = _world.pg_map.get(pg, None)
13471347
if pg_store is None:
1348-
raise ValueError(f"Process group {pg} is not initialized in the world group map. Please initialize the group first.")
1349-
1348+
raise ValueError(
1349+
f"Process group {pg} is not initialized in the world group map. Please initialize the group first."
1350+
)
1351+
13501352
return Backend(not_none(pg_store)[0])
13511353

13521354

0 commit comments

Comments
 (0)