Skip to content

Commit b33dee2

Browse files
committed
metal : fix build "tanhf" -> "tanh"
1 parent 92f44ff commit b33dee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml-metal.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ kernel void kernel_gelu(
8989
device float * dst,
9090
uint tpig[[thread_position_in_grid]]) {
9191
float x = src0[tpig];
92-
dst[tpig] = 0.5f*x*(1.0f + tanhf(SQRT_2_OVER_PI*x*(1.0f + GELU_COEF_A*x*x)));
92+
dst[tpig] = 0.5f*x*(1.0f + tanh(SQRT_2_OVER_PI*x*(1.0f + GELU_COEF_A*x*x)));
9393
}
9494

9595
kernel void kernel_soft_max(

0 commit comments

Comments
 (0)