Skip to content

Commit

Permalink
Remove deprecated `pytorch_lightning.core.decorators.parameter_valida…
Browse files Browse the repository at this point in the history
…tion` (#13514)

* Removal of depreciated code from decorators

* Update CHANGELOG.md

* Removed imports
  • Loading branch information
shantam-8 authored Jul 11, 2022
1 parent 558658a commit bdb6e40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 70 deletions.
3 changes: 3 additions & 0 deletions src/pytorch_lightning/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Removed

- Removed deprecated `pytorch_lightning.core.decorators.parameter_validation` from `decorators` ([#13514](https://github.com/Lightning-AI/lightning/pull/13514))


- Removed the deprecated `Logger.close` method ([#13149](https://github.com/PyTorchLightning/pytorch-lightning/pull/13149))


Expand Down
60 changes: 0 additions & 60 deletions src/pytorch_lightning/core/decorators.py

This file was deleted.

10 changes: 0 additions & 10 deletions tests/tests_pytorch/deprecated_api/test_remove_1-7.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
TorchElasticEnvironment,
)
from pytorch_lightning.strategies import SingleDeviceStrategy
from tests_pytorch.deprecated_api import _soft_unimport_module
from tests_pytorch.plugins.environments.test_lsf_environment import _make_rankfile


Expand Down Expand Up @@ -76,15 +75,6 @@ def on_post_move_to_device(self):
trainer.fit(model)


def test_v1_7_0_deprecate_parameter_validation():

_soft_unimport_module("pytorch_lightning.core.decorators")
with pytest.deprecated_call(
match="Using `pytorch_lightning.core.decorators.parameter_validation` is deprecated in v1.5"
):
from pytorch_lightning.core.decorators import parameter_validation # noqa: F401


def test_v1_7_0_deprecated_slurm_job_id():
trainer = Trainer()
with pytest.deprecated_call(match="Method `slurm_job_id` is deprecated in v1.6.0 and will be removed in v1.7.0."):
Expand Down

0 comments on commit bdb6e40

Please sign in to comment.