MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / sigmoid

Function sigmoid

imperative/python/megengine/functional/nn.py:851–853  ·  view source on GitHub ↗

r"""Element-wise `1 / ( 1 + exp( -x ) )`.

(x)

Source from the content-addressed store, hash-verified

849
850
851def sigmoid(x):
852 r"""Element-wise `1 / ( 1 + exp( -x ) )`."""
853 return _elwise(x, mode=Elemwise.Mode.SIGMOID)
854
855
856def hsigmoid(x):

Callers 3

forwardMethod · 0.50
TEST_PASSFunction · 0.50
TESTFunction · 0.50

Calls 1

_elwiseFunction · 0.50

Tested by 2

TEST_PASSFunction · 0.40
TESTFunction · 0.40