HardSigmoid
Description
HardSigmoid receives an input data (tensor) and generates an output data (tensor). The HardSigmoid function y = max(0, min(1, alpha * x + beta)) is applied to tensor elements.
Input
One input:
X: tensor of type float16 or float.
Output
One output:
Y: tensor of type float16 or float.
Property
alpha: float. Defaults to 0.2.
beta: float. Defaults to 0.2.
ONNX Opset Support
Opset v1/v6/v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Operators Specifications of the AI Framework