Skip to content

Commit 8dbe5ca

Browse files
committed
Change parametrization in tests for Repeat and Unique impls. in PyTorch
1 parent 330a7d2 commit 8dbe5ca

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: tests/link/pytorch/test_extra_ops.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ def test_pytorch_Unique_axis(axis):
6767
compare_pytorch_and_py(fgraph, [test_value])
6868

6969

70+
@pytest.mark.parametrize("return_inverse", [False, True])
71+
@pytest.mark.parametrize("return_counts", [False, True])
7072
@pytest.mark.parametrize(
71-
"return_index, return_inverse, return_counts",
72-
[
73-
(False, True, False),
74-
(False, True, True),
75-
pytest.param(
76-
True, False, False, marks=pytest.mark.xfail(raises=NotImplementedError)
77-
),
78-
],
73+
"return_index",
74+
(False, pytest.param(True, marks=pytest.mark.xfail(raises=NotImplementedError))),
7975
)
8076
def test_pytorch_Unique_params(return_index, return_inverse, return_counts):
8177
a = pt.matrix("a", dtype="float64")

0 commit comments

Comments
 (0)