jax.nn.hard_silu

Warning

This page was created from a pull request (#9655).

jax.nn.hard_silu¶

jax.nn.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 (Any) – input array

Return type

Any