| 1493 | #endif |
| 1494 | |
| 1495 | inline static float ggml_silu_backward_f32(float x, float dy) { |
| 1496 | const float s = 1.0f/(1.0f + expf(-x)); |
| 1497 | return dy*s*(1.0f + x*(1.0f - s)); |
| 1498 | } |
| 1499 | |
| 1500 | #ifdef GGML_SILU_FP16 |
| 1501 | inline static void ggml_vec_silu_backward_f32(const int n, float * dx, const float * x, const float * dy) { |
no outgoing calls
no test coverage detected