MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_silu_backward_f32

Function ggml_silu_backward_f32

ggml.c:1495–1498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493#endif
1494
1495inline 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
1501inline static void ggml_vec_silu_backward_f32(const int n, float * dx, const float * x, const float * dy) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected