mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-18 23:21:16 +08:00
fix flaky test (#2371)
This commit is contained in:
parent
e7d2ebadd2
commit
49114f28ab
@ -1478,7 +1478,7 @@ class TestOps(mlx_tests.MLXTestCase):
|
|||||||
r_mlx = mlxop(y)
|
r_mlx = mlxop(y)
|
||||||
mx.eval(r_mlx)
|
mx.eval(r_mlx)
|
||||||
|
|
||||||
self.assertTrue(np.allclose(r_np, r_mlx, atol=atol))
|
self.assertTrue(np.allclose(r_np, r_mlx, atol=atol, equal_nan=True))
|
||||||
|
|
||||||
x = np.random.rand(9, 12, 18)
|
x = np.random.rand(9, 12, 18)
|
||||||
xi = np.random.rand(9, 12, 18)
|
xi = np.random.rand(9, 12, 18)
|
||||||
|
Loading…
Reference in New Issue
Block a user