Skip to content

Commit

Permalink
Disable a test that uses torch.compile in python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Jun 10, 2024
1 parent 8e6ea00 commit dbc1681
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ def test_per_batch_box(device, strategy, n_batches, use_forward):
@pytest.mark.parametrize("loop", [True, False])
@pytest.mark.parametrize("include_transpose", [True, False])
def test_torch_compile(device, dtype, loop, include_transpose):
import sys

if sys.version_info >= (3, 12):
pytest.skip("Not available in this version")
if torch.__version__ < "2.0.0":
pytest.skip("Not available in this version")
if device == "cuda" and not torch.cuda.is_available():
Expand Down

0 comments on commit dbc1681

Please sign in to comment.