Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ sigmoid
Function
sigmoid
test/math.cpp:39–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
38
template<typename T>
39
T sigmoid(T in) {
40
return T(1.0 / (1.0 + std::exp(-in)));
41
}
42
43
template<typename T>
44
T rsqrt(T in) {
Callers
8
predict
Function · 0.50
predict
Function · 0.50
prop_up
Method · 0.50
prop_down
Method · 0.50
forward_propagate
Method · 0.50
sigmoid_binary
Function · 0.50
prop_up
Method · 0.50
forward_propagate
Method · 0.50
Calls
1
exp
Function · 0.85
Tested by
no test coverage detected