Skip to content

Commit

Permalink
drop swa
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 1, 2021
1 parent 0521473 commit 0a36b8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions pytorch_lightning/callbacks/swa.py

This file was deleted.

7 changes: 0 additions & 7 deletions tests/deprecated_api/test_remove_1-5.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,10 @@

from pytorch_lightning import Callback, Trainer
from pytorch_lightning.loggers import WandbLogger
from tests.deprecated_api import _soft_unimport_module
from tests.helpers import BoringModel
from tests.helpers.utils import no_warning_call


def test_v1_4_0_deprecated_imports():
_soft_unimport_module('pytorch_lightning.callbacks.swa')
with pytest.deprecated_call(match='will be removed in v1.4'):
from pytorch_lightning.callbacks.swa import StochasticWeightAveraging # noqa: F811 F401


@mock.patch('pytorch_lightning.loggers.wandb.wandb')
def test_v1_5_0_wandb_unused_sync_step(tmpdir):
with pytest.deprecated_call(match=r"v1.2.1 and will be removed in v1.5"):
Expand Down

0 comments on commit 0a36b8d

Please sign in to comment.