Remove deprecated `Trainer.running_sanity_check` (#9209)

This commit is contained in:
B. Kerim Tshimanga 2021-08-30 16:44:33 -07:00 committed by GitHub
parent 65be98b5e2
commit 34053ef85e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 14 deletions

View File

@ -237,6 +237,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Removed deprecated `profiled_functions` argument from `PyTorchProfiler` ([#9178](https://github.com/PyTorchLightning/pytorch-lightning/pull/9178))
- Removed deprecated property `Trainer.running_sanity_check` in favor of `Trainer.sanity_checking` ([#9209](https://github.com/PyTorchLightning/pytorch-lightning/pull/9209))
### Fixed
- Fixed save/load/resume from checkpoint for DeepSpeed Plugin (

View File

@ -17,16 +17,8 @@ from pytorch_lightning.utilities import rank_zero_deprecation
class DeprecatedTrainerAttributes:
sanity_checking: bool
fit_loop: FitLoop
@property
def running_sanity_check(self) -> bool:
rank_zero_deprecation(
"`Trainer.running_sanity_check` has been renamed to `Trainer.sanity_checking` and will be removed in v1.5."
)
return self.sanity_checking
@property
def train_loop(self) -> FitLoop:
rank_zero_deprecation(

View File

@ -25,12 +25,6 @@ from tests.helpers.runif import RunIf
from tests.helpers.utils import no_warning_call
def test_v1_5_0_running_sanity_check():
trainer = Trainer()
with pytest.deprecated_call(match="has been renamed to `Trainer.sanity_checking`"):
assert not trainer.running_sanity_check
def test_v1_5_0_model_checkpoint_period(tmpdir):
with no_warning_call(DeprecationWarning):
ModelCheckpoint(dirpath=tmpdir)