A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jax-ml/jax/issues/2107 below:

grad(softplus) has wrong value at zero · Issue #2107 · jax-ml/jax · GitHub

jax.grad(jax.nn.softplus)(0.0) evaluates to 0.0, which is definitely wrong -- the right answer is 0.5.

This is easy to visualize:

import matplotlib.pyplot as plt
x = jax.numpy.linspace(-2, 2, num=101)
plt.plot(x, jax.vmap(jax.grad(jax.nn.softplus))(x))


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4