]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : fix overflows in elu function (#8866)
authorJustine Tunney <redacted>
Mon, 5 Aug 2024 12:43:40 +0000 (05:43 -0700)
committerGitHub <redacted>
Mon, 5 Aug 2024 12:43:40 +0000 (15:43 +0300)
commitb9dfc25ca385a83bde9e9456c4d4fae15377bc7b
treeee356d718154ceb09189558e7bdb304e063e13e8
parent1ef14b30075da594cb24f0ab858a14bf1d8d1797
ggml : fix overflows in elu function (#8866)

It's helpful to use expm1f(x), because expf(x)-1 will result in overflow
for 25% of single-precision floating point numbers.
ggml/src/ggml.c