HardSigmoid

Description

Receives an input tensor and generates an output tensor using HardSigmoid.

The input tensor is computed element-wise.

Input

x: input tensor of type float16 or float.

Attribute

  • alpha: float. The default value is 0.2.
  • beta: float. The default value is 0.5.

Output

y: output tensor of the identical data type and shape to the input.

Constraints

None.

ONNX Opset Support

Opset v1/v6/v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18