Skip to content

Commit 9a402c3

Browse files
Update pytorch_lightning/utilities/distributed.py
Co-authored-by: ananthsub <[email protected]>
1 parent 2fc0b67 commit 9a402c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/utilities/distributed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def register_ddp_comm_hook(
315315
)
316316

317317

318-
def tpu_distributed():
318+
def tpu_distributed() -> bool:
319319
if _TPU_AVAILABLE:
320320
return xm.xrt_world_size() > 1
321321
return False

0 commit comments

Comments
 (0)