Skip to content

Commit fd9966d

Browse files
committed
yapf
1 parent 8ef3fef commit fd9966d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/plugins/test_sharded_plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,12 @@ def test_ddp_sharded_plugin_resume_from_checkpoint_gpu_to_cpu(tmpdir):
259259

260260

261261
@RunIf(skip_windows=True, special=True, fairscale=True)
262-
@pytest.mark.parametrize("trainer_kwargs", ({'num_processes': 2}, pytest.param({'gpus': 2}, marks=RunIf(min_gpus=2))))
262+
@pytest.mark.parametrize(
263+
"trainer_kwargs", (
264+
dict(num_processes=2),
265+
pytest.param(dict(gpus=2), marks=RunIf(min_gpus=2)),
266+
)
267+
)
263268
def test_ddp_sharded_plugin_test_multigpu(tmpdir, trainer_kwargs):
264269
"""
265270
Test to ensure we can use validate and test without fit

0 commit comments

Comments
 (0)