MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / silu

Function silu

src/infer.cpp:640–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640inline float silu(float x) {
641 return x / (1.0f + expf(-x));
642}
643
644inline float clip(float x, float v) {
645 return x < -v ? -v : (x > v ? v : x);

Callers 2

_block_cpuMethod · 0.85
ffn_cpuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected