diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-06-09 11:11:04 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-06-09 11:11:04 +0300 |
commit | b33dee282f5d8032b5f780152732dc45cbf2d349 (patch) | |
tree | 58c1e0541f908de94b0c9f3437acdf022f963537 | |
parent | 92f44ff7f778ef1b94028b2ba6d39943b5ca0ada (diff) |
metal : fix build "tanhf" -> "tanh"
-rw-r--r-- | ggml-metal.metal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-metal.metal b/ggml-metal.metal index 745fe8a..c94ef83 100644 --- a/ggml-metal.metal +++ b/ggml-metal.metal @@ -89,7 +89,7 @@ kernel void kernel_gelu( device float * dst, uint tpig[[thread_position_in_grid]]) { float x = src0[tpig]; - dst[tpig] = 0.5f*x*(1.0f + tanhf(SQRT_2_OVER_PI*x*(1.0f + GELU_COEF_A*x*x))); + dst[tpig] = 0.5f*x*(1.0f + tanh(SQRT_2_OVER_PI*x*(1.0f + GELU_COEF_A*x*x))); } kernel void kernel_soft_max( |