flax.linen.activation.hard_silu#

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

Hard SiLU activation function

Computes the element-wise function

\[\mathrm{hard\_silu}(x) = x \cdot \mathrm{hard\_sigmoid}(x)\]
Parameters

x – input array