mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user