We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f44ff commit b33dee2Copy full SHA for b33dee2
ggml-metal.metal
@@ -89,7 +89,7 @@ kernel void kernel_gelu(
89
device float * dst,
90
uint tpig[[thread_position_in_grid]]) {
91
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)));
+ dst[tpig] = 0.5f*x*(1.0f + tanh(SQRT_2_OVER_PI*x*(1.0f + GELU_COEF_A*x*x)));
93
}
94
95
kernel void kernel_soft_max(
0 commit comments