We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60acb8d commit 242aba7Copy full SHA for 242aba7
tests/link/mlx/test_math.py
@@ -27,8 +27,13 @@ def test_dot():
27
28
@pytest.mark.parametrize(
29
"op",
30
- [pt.exp, pt.log, pt.sin, pt.cos],
31
- ids=["exp", "log", "sin", "cos"],
+ [
+ pytest.param(pt.exp, id="exp"),
32
+ pytest.param(pt.log, id="log"),
33
+ pytest.param(pt.sin, id="sin"),
34
+ pytest.param(pt.cos, id="cos"),
35
+ pytest.param(pt.sigmoid, id="sigmoid"),
36
+ ],
37
)
38
def test_elemwise_one_input(op) -> None:
39
x = pt.vector("x")
@@ -39,8 +44,16 @@ def test_elemwise_one_input(op) -> None:
44
40
45
41
46
42
- [pt.add, pt.sub, pt.mul],
43
- ids=["add", "sub", "mul"],
47
48
+ pytest.param(pt.add, id="add"),
49
+ pytest.param(pt.sub, id="sub"),
50
+ pytest.param(pt.mul, id="mul"),
51
+ pytest.param(pt.power, id="power"),
52
+ pytest.param(pt.le, id="le"),
53
+ pytest.param(pt.lt, id="lt"),
54
+ pytest.param(pt.ge, id="ge"),
55
+ pytest.param(pt.gt, id="gt"),
56
57
58
def test_elemwise_two_inputs(op) -> None:
59
0 commit comments