Skip to content

Commit

Permalink
Fix failing tests on old pytorch versions (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Nov 24, 2023
1 parent e5997ee commit fc0c2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ignite/engine/test_create_supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def test_create_supervised_trainer_on_cuda():
_test_create_mocked_supervised_trainer(model_device=model_device, trainer_device=trainer_device)


@pytest.mark.skipif(not torch.backends.mps.is_available(), reason="Skip if no MPS")
@pytest.mark.skipif(not (_torch_version_le_112 and torch.backends.mps.is_available()), reason="Skip if no MPS")
def test_create_supervised_trainer_on_mps():
model_device = trainer_device = "mps"
_test_create_supervised_trainer_wrong_accumulation(model_device=model_device, trainer_device=trainer_device)
Expand Down

0 comments on commit fc0c2ae

Please sign in to comment.