Skip to content

Commit 64d1c46

Browse files
Update error message for interactive incompatible plugins (#9896)
Co-authored-by: Kaushik B <[email protected]>
1 parent 6da5829 commit 64d1c46

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
273273
- Update the logic to check for accumulation steps with deepspeed ([#9826](https://github.com/PyTorchLightning/pytorch-lightning/pull/9826))
274274

275275

276+
- Updated error message for interactive incompatible plugins ([#9896](https://github.com/PyTorchLightning/pytorch-lightning/pull/9896))
277+
278+
276279
### Deprecated
277280

278281
- Deprecated trainer argument `terminate_on_nan` in favour of `detect_anomaly`([#9175](https://github.com/PyTorchLightning/pytorch-lightning/pull/9175))

pytorch_lightning/trainer/connectors/accelerator_connector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,9 @@ def check_interactive_compatibility(self):
845845
raise MisconfigurationException(
846846
f"Selected distributed backend {self._distrib_type} is not compatible with an interactive"
847847
" environment. Run your code as a script, or choose one of the compatible backends:"
848-
f" {', '.join(DistributedType.interactive_compatible_types())}"
848+
f" {', '.join(DistributedType.interactive_compatible_types())}."
849+
" In case you are spawning processes yourself, make sure to include the Trainer"
850+
" creation inside the worker function."
849851
)
850852

851853
def check_horovod(self):

0 commit comments

Comments
 (0)