Skip to content

Commit

Permalink
cleanup test_checkpoint as test running on cpu does not depend on gpu…
Browse files Browse the repository at this point in the history
… platform
  • Loading branch information
tenpercent committed Feb 16, 2024
1 parent dea783d commit acd6b7a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
)

cuda_only = pytest.mark.skipif(not torch.cuda.is_available(), reason="requires CUDA")
disable_on_rocm = pytest.mark.skipif(
not not torch.version.hip, reason="could not be done on ROCM"
)
_devices = ["cpu"]
cuda_cap = (0, 0)

Expand All @@ -39,7 +36,6 @@ def _all_policy(func, *args, **kwargs):
return True


@disable_on_rocm
@pytest.mark.skipif(torch.__version__ < "2.2", reason="Only new PyTorch supported")
@pytest.mark.parametrize("policy_fn", [None, [], _relu_policy, _all_policy])
@pytest.mark.parametrize("input_requires_grad", [True, False])
Expand Down

0 comments on commit acd6b7a

Please sign in to comment.