e3x.nn.activations.hard_swish
- e3x.nn.activations.hard_swish(x)
Hard SiLU/Swish activation function.
Computes the element-wise function (see
hard_sigmoid)\[\mathrm{hard\_silu}(x) = x \cdot \mathrm{hard\_sigmoid}(x)\]- Parameters:
x (
Union[Float[Array, '... 1 (max_degree+1)**2 num_features'], Float[Array, '... 2 (max_degree+1)**2 num_features']]) – Input features to which the nonlinearity is applied.- Return type:
- Returns:
The result of applying the nonlinearity to the input features.