Skip to content

Commit cff4cf4

Browse files
committed
Marked test for [Arg]Sort Op in PyTorch as xfail when axis is None
1 parent 4a33301 commit cff4cf4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/link/pytorch/test_sort.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
from tests.link.pytorch.test_basic import compare_pytorch_and_py
88

99

10-
@pytest.mark.xfail(reason="Reshape not implemented")
11-
@pytest.mark.parametrize("axis", [0, 1, None])
1210
@pytest.mark.parametrize("func", (sort, argsort))
11+
@pytest.mark.parametrize(
12+
"axis",
13+
[
14+
pytest.param(0),
15+
pytest.param(1),
16+
pytest.param(
17+
None, marks=pytest.mark.xfail(reason="Reshape Op not implemented")
18+
),
19+
],
20+
)
1321
def test_sort(func, axis):
1422
x = matrix("x", shape=(2, 2), dtype="float64")
1523
out = func(x, axis=axis)

0 commit comments

Comments
 (0)