mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 15:29:43 +00:00
metal : fix build "tanhf" -> "tanh"
This commit is contained in:
parent
92f44ff7f7
commit
b33dee282f
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ kernel void kernel_gelu(
|
||||||
device float * dst,
|
device float * dst,
|
||||||
uint tpig[[thread_position_in_grid]]) {
|
uint tpig[[thread_position_in_grid]]) {
|
||||||
float x = src0[tpig];
|
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(
|
kernel void kernel_soft_max(
|
||||||
|
|
Loading…
Reference in a new issue