| 1402 | inline static void ggml_vec_elu_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = (x[i] > 0.f) ? x[i] : expf(x[i])-1; } |
| 1403 | inline static void ggml_vec_relu_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = (x[i] > 0.f) ? x[i] : 0.f; } |
| 1404 | inline static void ggml_vec_leaky_f32 (const int n, float * y, const float * x) { for (int i = 0; i < n; ++i) y[i] = (x[i] > 0.f) ? x[i] : 0.1f*x[i]; } |
| 1405 | |
| 1406 | static const float GELU_COEF_A = 0.044715f; |
| 1407 | static const float GELU_QUICK_COEF = -1.702f; |
no outgoing calls
no test coverage detected