MCPcopy 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
20template<typename T>
21T sigmoid(T in) {
22 return (1.0) / (1 + std::exp(-in));
23}
24
25template<typename T>
26T rsqrt(T in) {

Callers

nothing calls this directly

Calls 1

expFunction · 0.85

Tested by

no test coverage detected