From 43896a7666ba23e5c78a1bc7791b76c944d32763 Mon Sep 17 00:00:00 2001 From: Danielle Pintz <38207072+daniellepintz@users.noreply.github.com> Date: Tue, 28 Sep 2021 05:57:03 -0700 Subject: [PATCH] Removed deprecated property is_using_torchelastic from AcceleratorConnector (#9729) --- CHANGELOG.md | 3 +++ .../trainer/connectors/accelerator_connector.py | 14 -------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 844de40436..e6d22efccd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -378,6 +378,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - 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)) +- Removed deprecated property `AcceleratorConnector.is_using_torchelastic` in favor of `TorchElasticEnvironment.is_using_torchelastic()` ([#9729](https://github.com/PyTorchLightning/pytorch-lightning/pull/9729)) + + - Removed `pytorch_lightning.utilities.debugging.InternalDebugger` ([#9680](https://github.com/PyTorchLightning/pytorch-lightning/pull/9680)) diff --git a/pytorch_lightning/trainer/connectors/accelerator_connector.py b/pytorch_lightning/trainer/connectors/accelerator_connector.py index 8576d6cd14..1248c41b54 100644 --- a/pytorch_lightning/trainer/connectors/accelerator_connector.py +++ b/pytorch_lightning/trainer/connectors/accelerator_connector.py @@ -534,20 +534,6 @@ class AcceleratorConnector: def is_training_type_in_plugins(self) -> bool: return any(isinstance(plug, str) and plug in TrainingTypePluginsRegistry for plug in self.plugins) - @property - def is_using_torchelastic(self) -> bool: - """ - .. deprecated:: v1.3 - Will be removed in v1.5.0. - Returns: - ``True`` if the current process was launched using the torchelastic command. - """ - rank_zero_deprecation( - "The property `AcceleratorConnector.is_using_torchelastic` was deprecated in v1.3" - " and will be removed in 1.5. Use `TorchElasticEnvironment.is_using_torchelastic()` instead." - ) - return TorchElasticEnvironment.is_using_torchelastic() - def select_precision_plugin(self) -> PrecisionPlugin: # set precision type self.amp_type = AMPType.from_str(self.amp_type)