lightning/pytorch_lightning
Kushashwa Ravi Shrimali 0973cc578e
Fix import error when `distributed` module not available (#12794)
* add distributed.is_available checks to avoid errors when not available

* Update CHANGELOG

* Update pytorch_lightning/strategies/ddp.py

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>

* Update pytorch_lightning/strategies/ddp.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
2022-04-20 17:28:39 +00:00
..
accelerators Add cpu device parser to validate cpu devices (#12160) 2022-03-28 20:33:04 +05:30
callbacks docs refactor 3/n (#12795) 2022-04-19 14:15:47 -04:00
core docs refactor 3/n (#12795) 2022-04-19 14:15:47 -04:00
demos docs refactor 3/n (#12795) 2022-04-19 14:15:47 -04:00
distributed Renamed the `DDPSpawnPlugin` to `DDPSpawnStrategy` (#11145) 2021-12-21 23:06:14 +00:00
lite Support auto_select_gpus with accelerator and devices api (#12608) 2022-04-12 21:28:54 +00:00
loggers Rename loggers/base.py to loggers/logger.py and changed LightningLoggerBase to Logger (#12014) 2022-04-08 19:41:46 +00:00
loops Remove deprecated 'terminate_on_nan' argument from Trainer (#12553) 2022-04-06 20:22:12 +05:30
overrides Fix import error when `distributed` module not available (#12794) 2022-04-20 17:28:39 +00:00
plugins Add `bfloat16` support to `DeepSpeedStrategy` (#12508) 2022-04-07 22:18:51 +00:00
profiler Drop PyTorch 1.7 support (#12432) 2022-03-27 21:31:20 +00:00
strategies Fix import error when `distributed` module not available (#12794) 2022-04-20 17:28:39 +00:00
trainer Remove deprecated `dataloader_idx` argument from `on_train_batch_start/end` callback hooks (#12769) 2022-04-18 18:49:59 +02:00
tuner Support auto_select_gpus with accelerator and devices api (#12608) 2022-04-12 21:28:54 +00:00
utilities Better error mesage and type checking for `gpus` arg and `devices` arg in `Trainer` (#12530) 2022-04-20 17:19:41 +00:00
__about__.py Update version after the 1.6.0 release (#12512) 2022-03-30 08:10:59 +02:00
__init__.py Add DETAIL logs for batch use cases (#11008) 2022-01-12 01:22:48 +01:00
py.typed
setup_tools.py CI: precommit - docformatter (#8584) 2021-09-06 12:49:09 +00:00