Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
float sigmoid(float x) {
21
return 1 / (1 + std::exp(-4 * x)) - 0.5;
22
}
23
24
static int gNumNoInputs = 0;
25
static int callback(const void *inputBuffer, void *outputBuffer,
Callers
1
callback
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected