Skip to content

Commit f02be7c

Browse files
four4fishtchaton
andauthored
Update pytorch_lightning/trainer/trainer.py
Co-authored-by: thomas chaton <[email protected]>
1 parent 82df087 commit f02be7c

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
@@ -1668,7 +1668,7 @@ def _log_device_info(self) -> None:
16681668
category=PossibleUserWarning,
16691669
)
16701670

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

0 commit comments

Comments
 (0)