Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
851
def
sigmoid(x):
852
r
""
"Element-wise `1 / ( 1 + exp( -x ) )`."
""
853
return
_elwise(x, mode=Elemwise.Mode.SIGMOID)
854
855
856
def
hsigmoid(x):
Callers
3
forward
Method · 0.50
TEST_PASS
Function · 0.50
TEST
Function · 0.50
Calls
1
_elwise
Function · 0.50
Tested by
2
TEST_PASS
Function · 0.40
TEST
Function · 0.40