Skip to content

Commit a56756f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ae072e9 commit a56756f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lightning/fabric/utilities/distributed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ def _get_default_process_group_backend_for_device(device: torch.device) -> str:
322322
device_backend_map = torch.distributed.Backend.default_device_backend_map
323323
if device.type in device_backend_map:
324324
return device_backend_map[device.type]
325-
else:
326-
return "gloo"
325+
return "gloo"
327326

328327

329328
class _DatasetSamplerWrapper(Dataset):

0 commit comments

Comments
 (0)