Skip to content

Commit 43896a7

Browse files
Removed deprecated property is_using_torchelastic from AcceleratorConnector (#9729)
1 parent 131176b commit 43896a7

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
378378
- Removed deprecated properties `DeepSpeedPlugin.cpu_offload*` in favor of `offload_optimizer`, `offload_parameters` and `pin_memory` ([#9244](https://github.com/PyTorchLightning/pytorch-lightning/pull/9244))
379379

380380

381+
- Removed deprecated property `AcceleratorConnector.is_using_torchelastic` in favor of `TorchElasticEnvironment.is_using_torchelastic()` ([#9729](https://github.com/PyTorchLightning/pytorch-lightning/pull/9729))
382+
383+
381384
- Removed `pytorch_lightning.utilities.debugging.InternalDebugger` ([#9680](https://github.com/PyTorchLightning/pytorch-lightning/pull/9680))
382385

383386

pytorch_lightning/trainer/connectors/accelerator_connector.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -534,20 +534,6 @@ def root_gpu(self) -> Optional[int]:
534534
def is_training_type_in_plugins(self) -> bool:
535535
return any(isinstance(plug, str) and plug in TrainingTypePluginsRegistry for plug in self.plugins)
536536

537-
@property
538-
def is_using_torchelastic(self) -> bool:
539-
"""
540-
.. deprecated:: v1.3
541-
Will be removed in v1.5.0.
542-
Returns:
543-
``True`` if the current process was launched using the torchelastic command.
544-
"""
545-
rank_zero_deprecation(
546-
"The property `AcceleratorConnector.is_using_torchelastic` was deprecated in v1.3"
547-
" and will be removed in 1.5. Use `TorchElasticEnvironment.is_using_torchelastic()` instead."
548-
)
549-
return TorchElasticEnvironment.is_using_torchelastic()
550-
551537
def select_precision_plugin(self) -> PrecisionPlugin:
552538
# set precision type
553539
self.amp_type = AMPType.from_str(self.amp_type)

0 commit comments

Comments
 (0)