Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ sigmoid
Function
sigmoid
src/backend/cpu/unary.hpp:21–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
20
template<typename T>
21
T sigmoid(T in) {
22
return (1.0) / (1 + std::exp(-in));
23
}
24
25
template<typename T>
26
T rsqrt(T in) {
Callers
nothing calls this directly
Calls
1
exp
Function · 0.85
Tested by
no test coverage detected