MCPcopy 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
38template<typename T>
39T sigmoid(T in) {
40 return T(1.0 / (1.0 + std::exp(-in)));
41}
42
43template<typename T>
44T rsqrt(T in) {

Callers 8

predictFunction · 0.50
predictFunction · 0.50
prop_upMethod · 0.50
prop_downMethod · 0.50
forward_propagateMethod · 0.50
sigmoid_binaryFunction · 0.50
prop_upMethod · 0.50
forward_propagateMethod · 0.50

Calls 1

expFunction · 0.85

Tested by

no test coverage detected