flax.linen.activation.softplus

Contents

flax.linen.activation.softplus#

flax.linen.activation.softplus(x)[source]#

Softplus activation function.

Computes the element-wise function

\[\mathrm{softplus}(x) = \log(1 + e^x)\]
Parameters

x – input array