jax.nn.hard_sigmoid#
- jax.nn.hard_sigmoid(x)[source]#
Hard Sigmoid activation function.
Computes the element-wise function
\[\mathrm{hard\_sigmoid}(x) = \frac{\mathrm{relu6}(x + 3)}{6}\]- Parameters:
x (
Union
[Array
,ndarray
,bool_
,number
,bool
,int
,float
,complex
]) – input array- Return type:
- Returns:
An array.
See also