flax.linen.activation.soft_sign

Contents

flax.linen.activation.soft_sign#

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

Soft-sign activation function.

Computes the element-wise function

\[\mathrm{soft\_sign}(x) = \frac{x}{|x| + 1}\]
Parameters

x – input array