Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ softplus
Function
softplus
imperative/python/megengine/xla/rules/elemwise.py:403–404 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
401
402
403
def
softplus(x):
404
return
log1p(exp(-abs(x))) + relu(x)
405
406
407
def
softplus_grad(x, dy):
Callers
nothing calls this directly
Calls
4
relu
Function · 0.70
log1p
Function · 0.50
exp
Function · 0.50
abs
Function · 0.50
Tested by
no test coverage detected