MCPcopy Create free account
hub / github.com/ml-explore/mlx / softplus

Function softplus

benchmarks/python/comparative/bench_torch.py:172–176  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

170
171@torch.no_grad()
172def softplus(x):
173 y = x
174 for i in range(100):
175 y = torch.nn.functional.softplus(y)
176 sync_if_needed(x)
177
178
179@torch.no_grad()

Callers

nothing calls this directly

Calls 1

sync_if_neededFunction · 0.85

Tested by

no test coverage detected