We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abb832 commit e336db5Copy full SHA for e336db5
torch/distributed/distributed_c10d.py
@@ -1342,11 +1342,13 @@ def get_backend(group: Optional[ProcessGroup] = None) -> Backend:
1342
pg = group or _get_default_group()
1343
if _rank_not_in_group(pg):
1344
raise ValueError("Invalid process group specified")
1345
-
+
1346
pg_store = _world.pg_map.get(pg, None)
1347
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
+ raise ValueError(
+ f"Process group {pg} is not initialized in the world group map. Please initialize the group first."
1350
+ )
1351
1352
return Backend(not_none(pg_store)[0])
1353
1354
0 commit comments