Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ softplus
Function
softplus
benchmarks/python/comparative/bench_mlx.py:192–196 ·
view source on GitHub ↗
(x: mx.array)
Source
from the content-addressed store, hash-verified
190
191
192
def
softplus(x: mx.array):
193
y = x
194
for
i in range(100):
195
y = nn.softplus(y)
196
mx.eval(y)
197
198
199
def
mish(x: mx.array):
Callers
nothing calls this directly
Calls
1
eval
Method · 0.45
Tested by
no test coverage detected