MCPcopy 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
856def hsigmoid(x):
857 r"""Element-wise `relu6(x + 3) / 6`."""
858 return _elwise(x, mode=Elemwise.Mode.HSIGMOID)
859
860
861def relu(x):

Callers

nothing calls this directly

Calls 1

_elwiseFunction · 0.50

Tested by

no test coverage detected