Skip to content

Commit a2847ec

Browse files
Update pytorch_lightning/trainer/connectors/accelerator_connector.py
Co-authored-by: Ethan Harris <[email protected]>
1 parent c39930c commit a2847ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/trainer/connectors/accelerator_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def select_accelerator_type(self) -> None:
193193
elif self.distributed_backend == DeviceType.GPU:
194194
if not self.has_gpu:
195195
msg = ("you didn't pass `gpus` to `Trainer`" if torch.cuda.is_available() else "GPUs are not available")
196-
raise MisconfigurationException(f"You passed `accelerator='gpu'`, but {msg}")
196+
raise MisconfigurationException(f"You passed `accelerator='gpu'`, but {msg}.")
197197
self._accelerator_type = DeviceType.GPU
198198
elif self.distributed_backend == DeviceType.CPU:
199199
self._accelerator_type = DeviceType.CPU

0 commit comments

Comments
 (0)