mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
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:
@@ -3,6 +3,8 @@ cuda_skip = {
|
|||||||
"TestLayers.test_quantized_embedding",
|
"TestLayers.test_quantized_embedding",
|
||||||
"TestOps.test_dynamic_slicing",
|
"TestOps.test_dynamic_slicing",
|
||||||
"TestReduce.test_dtypes",
|
"TestReduce.test_dtypes",
|
||||||
|
"TestReduce.test_nanpropagation",
|
||||||
|
"TestReduce.test_nanpropagation_complex64",
|
||||||
# Block masked matmul NYI
|
# Block masked matmul NYI
|
||||||
"TestBlas.test_block_masked_matmul",
|
"TestBlas.test_block_masked_matmul",
|
||||||
# Gather matmul NYI
|
# Gather matmul NYI
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ class TestReduce(mlx_tests.MLXTestCase):
|
|||||||
x = (mx.random.normal((4, 4)) * 10).astype(getattr(mx, dtype))
|
x = (mx.random.normal((4, 4)) * 10).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:
|
for idx in indices:
|
||||||
x[*idx] = mx.nan
|
x[idx[0], idx[1]] = mx.nan
|
||||||
x_np = np.array(x)
|
x_np = np.array(x)
|
||||||
|
|
||||||
for op in ["max"]:
|
for op in ["max"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user