Commit b9dfc25
authored
ggml : fix overflows in elu function (ggml-org#8866)
It's helpful to use expm1f(x), because expf(x)-1 will result in overflow
for 25% of single-precision floating point numbers.1 parent 1ef14b3 commit b9dfc25
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
2315 | | - | |
| 2315 | + | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | 2318 | | |
| |||
0 commit comments