Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
640
inline float silu(float x) {
641
return x / (1.0f + expf(-x));
642
}
643
644
inline float clip(float x, float v) {
645
return x < -v ? -v : (x > v ? v : x);
Callers
2
_block_cpu
Method · 0.85
ffn_cpu
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected