Remove tuple unpacking syntax to comply with earlier python versions. Add cuda skip to nanpropagation tests, fix cuda implementation in a separate PR.

This commit is contained in:
Joona Havukainen
2025-07-08 20:52:09 -07:00
parent aca7fac9ef
commit 9a742090ae
2 changed files with 3 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ class TestReduce(mlx_tests.MLXTestCase):
x = (mx.random.normal((4, 4)) * 10).astype(getattr(mx, dtype))
indices = mx.random.randint(0, 4, shape=(6,)).reshape(3, 2)
for idx in indices:
x[*idx] = mx.nan
x[idx[0], idx[1]] = mx.nan
x_np = np.array(x)
for op in ["max"]: