brainpy.math.activations.hard_swish#

brainpy.math.activations.hard_swish(x)#

Hard SiLU activation function

Computes the element-wise function

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

x (JaxArray, jnp.ndarray) – The input array.