Skip to content

Commit ced1052

Browse files
committed
drop swa
1 parent 8b42311 commit ced1052

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

pytorch_lightning/callbacks/swa.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/deprecated_api/test_remove_1-5.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@
1919

2020
from pytorch_lightning import Callback, Trainer
2121
from pytorch_lightning.loggers import WandbLogger
22-
from tests.deprecated_api import _soft_unimport_module
2322
from tests.helpers import BoringModel
2423
from tests.helpers.utils import no_warning_call
2524

2625

27-
def test_v1_4_0_deprecated_imports():
28-
_soft_unimport_module('pytorch_lightning.callbacks.swa')
29-
with pytest.deprecated_call(match='will be removed in v1.4'):
30-
from pytorch_lightning.callbacks.swa import StochasticWeightAveraging # noqa: F811 F401
31-
32-
3326
@mock.patch('pytorch_lightning.loggers.wandb.wandb')
3427
def test_v1_5_0_wandb_unused_sync_step(tmpdir):
3528
with pytest.deprecated_call(match=r"v1.2.1 and will be removed in v1.5"):

0 commit comments

Comments
 (0)