mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 00:04:41 +08:00
fix simd erf_inv (#1896)
This commit is contained in:
@@ -898,6 +898,10 @@ class TestOps(mlx_tests.MLXTestCase):
|
||||
).astype(np.float32)
|
||||
self.assertTrue(np.allclose(mx.erfinv(x), expected, equal_nan=True))
|
||||
|
||||
result = mx.erfinv(mx.array([0.9999999403953552] * 8))
|
||||
expected = mx.array([3.8325066566467285] * 8)
|
||||
self.assertTrue(mx.allclose(result, expected))
|
||||
|
||||
def test_sin(self):
|
||||
a = mx.array(
|
||||
[0, math.pi / 4, math.pi / 2, math.pi, 3 * math.pi / 4, 2 * math.pi]
|
||||
|
Reference in New Issue
Block a user