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:
Array
- Returns:
An array.