MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / sigmoid

Function sigmoid

experimental/legacy/audio/run.cpp:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20float sigmoid(float x) {
21 return 1 / (1 + std::exp(-4 * x)) - 0.5;
22}
23
24static int gNumNoInputs = 0;
25static int callback(const void *inputBuffer, void *outputBuffer,

Callers 1

callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected