Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ hsigmoid
Function
hsigmoid
imperative/python/megengine/functional/nn.py:856–858 ·
view source on GitHub ↗
r"""Element-wise `relu6(x + 3) / 6`.
(x)
Source
from the content-addressed store, hash-verified
854
855
856
def
hsigmoid(x):
857
r
""
"Element-wise `relu6(x + 3) / 6`."
""
858
return
_elwise(x, mode=Elemwise.Mode.HSIGMOID)
859
860
861
def
relu(x):
Callers
nothing calls this directly
Calls
1
_elwise
Function · 0.50
Tested by
no test coverage detected