Pre-commit formatting

This commit is contained in:
Joona Havukainen
2025-07-06 14:27:40 -07:00
parent af74818528
commit 5b089dc5da
4 changed files with 11 additions and 11 deletions

View File

@@ -168,7 +168,7 @@ class TestReduce(mlx_tests.MLXTestCase):
for dtype in dtypes:
with self.subTest(dtype=dtype):
x = (mx.random.normal((4, 4))).astype(getattr(mx, dtype))
indices = mx.random.randint(0, 4, shape=(6,)).reshape(3,2)
indices = mx.random.randint(0, 4, shape=(6,)).reshape(3, 2)
for idx in indices:
x[*idx] = mx.nan
x_np = np.array(x)
@@ -179,5 +179,6 @@ class TestReduce(mlx_tests.MLXTestCase):
ref = getattr(np, op)(x_np, axis=axis)
self.assertTrue(np.array_equal(out, ref, equal_nan=True))
if __name__ == "__main__":
mlx_tests.MLXTestRunner(failfast=True)