Category: Activation function
Short description: HardSigmoid element-wise activation function.
Attributes: HardSigmoid operation has no attributes.
Mathematical Formulation
For each element from the input tensor calculates corresponding element in the output tensor with the following formula:
\[ y = max(0, min(1, alpha * x + beta)) \]
Inputs
alpha
0D tensor (scalar) of type T. Required.beta
0D tensor (scalar) of type T. Required.Outputs
Types
Examples