Skip to content

Commit

Permalink
Marked test for [Arg]Sort Op in PyTorch as xfail when axis is None
Browse files Browse the repository at this point in the history
  • Loading branch information
twaclaw committed Jul 8, 2024
1 parent 4a33301 commit cff4cf4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/link/pytorch/test_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
from tests.link.pytorch.test_basic import compare_pytorch_and_py


@pytest.mark.xfail(reason="Reshape not implemented")
@pytest.mark.parametrize("axis", [0, 1, None])
@pytest.mark.parametrize("func", (sort, argsort))
@pytest.mark.parametrize(
"axis",
[
pytest.param(0),
pytest.param(1),
pytest.param(
None, marks=pytest.mark.xfail(reason="Reshape Op not implemented")
),
],
)
def test_sort(func, axis):
x = matrix("x", shape=(2, 2), dtype="float64")
out = func(x, axis=axis)
Expand Down

0 comments on commit cff4cf4

Please sign in to comment.