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 a5117e0 commit 2c05858Copy full SHA for 2c05858
pytorch_lightning/trainer/trainer.py
@@ -1638,7 +1638,7 @@ def _log_device_info(self) -> None:
1638
num_ipus = self.ipus if self.ipus is not None else 0
1639
rank_zero_info(f"IPU available: {_IPU_AVAILABLE}, using: {num_ipus} IPUs")
1640
1641
- if torch.cuda.is_available() and isinstance(self.accelerator, GPUAccelerator):
+ if torch.cuda.is_available() and not isinstance(self.accelerator, GPUAccelerator):
1642
rank_zero_warn(
1643
"GPU available but not used. Set the gpus flag in your trainer `Trainer(gpus=1)` or script `--gpus=1`.",
1644
category=PossibleUserWarning,
0 commit comments