Skip to content

Commit 42833bc

Browse files
committed
ggml : silu(-inf) should never happen
1 parent bdbe117 commit 42833bc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ggml.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3923,8 +3923,6 @@ inline static void ggml_vec_gelu_quick_f32(const int n, float * y, const float *
39233923

39243924
// Sigmoid Linear Unit (SiLU) function
39253925
inline static float ggml_silu_f32(float x) {
3926-
if (x == -INFINITY) return 0.0f;
3927-
39283926
return x/(1.0f + expf(-x));
39293927
}
39303928

0 commit comments

Comments
 (0)