mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 10:26:56 +08:00
fix simd erf_inv (#1896)
This commit is contained in:
@@ -186,7 +186,7 @@ Simd<T, N> erfinv(Simd<T, N> a_) {
|
||||
return a * rhs(t);
|
||||
}
|
||||
} else {
|
||||
return a * select(t > thresh, lhs(t), rhs(t));
|
||||
return a * select(abs(t) > thresh, lhs(t), rhs(t));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,6 +4,7 @@ set(BASE_HEADERS
|
||||
bf16_math.h
|
||||
complex.h
|
||||
defines.h
|
||||
erf.h
|
||||
expm1f.h
|
||||
utils.h)
|
||||
|
||||
|
Reference in New Issue
Block a user