throw for invalid case and remove test (#1575)

This commit is contained in:
Awni Hannun
2024-11-08 12:04:03 -08:00
committed by GitHub
parent 91c0277356
commit 8c34c9dac4
2 changed files with 18 additions and 24 deletions

View File

@@ -71,6 +71,8 @@ class TestFFT(mlx_tests.MLXTestCase):
]
for op, ax, s in itertools.product(ops, axes, shapes):
if ax is None and s is not None:
continue
x = a
if op in ["rfft2", "rfftn"]:
x = r