Remove deprecated `Trainer.running_sanity_check` (#9209)
This commit is contained in:
parent
65be98b5e2
commit
34053ef85e
|
@ -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 (
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue