Skip to content

Commit a85cdbd

Browse files
committed
RunIf(min_gpus=1)
1 parent 8806d9d commit a85cdbd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pytorch_lightning/core/datamodule.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
from pytorch_lightning.core.hooks import CheckpointHooks, DataHooks
2323
from pytorch_lightning.core.mixins import HyperparametersMixin
2424
from pytorch_lightning.utilities import rank_zero_deprecation
25-
from pytorch_lightning.utilities.argparse import add_argparse_args, from_argparse_args, get_init_arguments_and_types
25+
from pytorch_lightning.utilities.argparse import (add_argparse_args,
26+
from_argparse_args,
27+
get_init_arguments_and_types)
2628

2729

2830
class LightningDataModule(CheckpointHooks, DataHooks, HyperparametersMixin):

tests/deprecated_api/test_remove_1-7.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,13 @@ def test_v1_7_0_weights_summary_trainer(tmpdir):
370370
t.weights_summary = "blah"
371371

372372

373+
@RunIf(min_gpus=1)
373374
def test_v1_7_0_deprecate_gpu_stats_monitor(tmpdir):
374375
with pytest.deprecated_call(match="The `GPUStatsMonitor` callback was deprecated in v1.5"):
375376
_ = GPUStatsMonitor()
376377

377378

378379
@RunIf(tpu=True)
379-
def test_v1_7_0_deprecate_tpu_stats_monitor(tmpdir):
380+
def test_v1_7_0_deprecate_xla_stats_monitor(tmpdir):
380381
with pytest.deprecated_call(match="The `XLAStatsMonitor` callback was deprecated in v1.5"):
381382
_ = XLAStatsMonitor()

0 commit comments

Comments
 (0)