We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9040bee commit 6c52477Copy full SHA for 6c52477
tests/models/test_gpu.py
@@ -47,7 +47,7 @@ def test_multi_gpu_none_backend(tmpdir):
47
tpipes.run_model_test(trainer_options, model)
48
49
50
-@pytest.mark.skipif(not torch.cuda.is_available(), reason="test requires GPU machine")
+@pytest.mark.skipif(torch.cuda.device_count() < 2, reason="test requires multi-GPU machine")
51
@pytest.mark.parametrize('gpus', [1, [0], [1]])
52
def test_single_gpu_model(tmpdir, gpus):
53
"""Make sure single GPU works (DP mode)."""
0 commit comments