Skip to content

Commit 13ddc56

Browse files
committed
rebase
1 parent 461aba2 commit 13ddc56

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/accelerators/test_accelerator_connector.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -548,18 +548,6 @@ def test_accelerator_auto_with_devices_gpu():
548548
assert trainer.num_devices == 1
549549

550550

551-
@RunIf(min_gpus=1)
552-
def test_accelerator_gpu_with_gpus_priority():
553-
"""Test for checking `gpus` flag takes priority over `devices`."""
554-
555-
gpus = 1
556-
with pytest.warns(UserWarning, match="The flag `devices=4` will be ignored,"):
557-
trainer = Trainer(accelerator="gpu", devices=4, gpus=gpus)
558-
559-
assert isinstance(trainer.accelerator, GPUAccelerator)
560-
assert trainer.num_devices == gpus
561-
562-
563551
def test_validate_accelerator_and_devices():
564552

565553
trainer = Trainer(accelerator="ddp_cpu", devices=2)

0 commit comments

Comments
 (0)