Skip to content

Commit

Permalink
ggml : silu(-inf) should never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Oct 7, 2023
1 parent bdbe117 commit 42833bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -3923,8 +3923,6 @@ inline static void ggml_vec_gelu_quick_f32(const int n, float * y, const float *

// Sigmoid Linear Unit (SiLU) function
inline static float ggml_silu_f32(float x) {
if (x == -INFINITY) return 0.0f;

return x/(1.0f + expf(-x));
}

Expand Down

0 comments on commit 42833bc

Please sign in to comment.