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 b8cee3f commit d057453Copy full SHA for d057453
tests/link/mlx/test_math.py
@@ -1,8 +1,8 @@
1
import numpy as np
2
3
import pytensor
4
-import tests.link.mlx.test_basic # noqa: F401
5
from pytensor.tensor.type import matrix
+from tests.link.mlx.test_basic import mx
6
7
8
def test_mlx_dot():
@@ -19,5 +19,6 @@ def test_mlx_dot():
19
test_y = rng.normal(size=(2, 4))
20
21
actual = fn(test_x, test_y)
22
+ assert isinstance(actual, mx.array)
23
expected = np.dot(test_x, test_y)
24
np.testing.assert_allclose(actual, expected, rtol=1e-6)
0 commit comments