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

Function sigmoid

src/infer.cpp:489–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489inline float sigmoid(float x) {
490 return 1.0f / (1.0f + expf(-x));
491}
492
493static void moe_gate(
494 float* moe_weights,

Callers 1

moe_gateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected