jax.nn.hard_swish#
- jax.nn.hard_swish(x)[source]#
Hard SiLU (swish) activation function
Computes the element-wise function
\[\mathrm{hard\_silu}(x) = x \cdot \mathrm{hard\_sigmoid}(x)\]Both
hard_silu()
andhard_swish()
are aliases for the same function.- Parameters:
x (ArrayLike) – input array
- Returns:
An array.
- Return type:
See also