Skip to content

Commit a5117e0

Browse files
four4fishtchaton
andcommitted
Update pytorch_lightning/trainer/trainer.py
Co-authored-by: thomas chaton <[email protected]>
1 parent 186929d commit a5117e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/trainer/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ def _log_device_info(self) -> None:
16441644
category=PossibleUserWarning,
16451645
)
16461646

1647-
if _TPU_AVAILABLE and isinstance(self.accelerator, TPUAccelerator):
1647+
if _TPU_AVAILABLE and not isinstance(self.accelerator, TPUAccelerator):
16481648
rank_zero_warn(
16491649
"TPU available but not used. Set the `tpu_cores` flag in your trainer"
16501650
" `Trainer(tpu_cores=8)` or script `--tpu_cores=8`."

0 commit comments

Comments
 (0)