HardSwish

Description

Receives an input tensor and generates an output tensor using the HardSwish activation function.

alpha is 1/6 and beta is 0.5. The input tensor is calculated element-wise.

Input

x: input tensor of type float16 or float.

Output

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

Constraints

None.

ONNX Opset Support

Opset v14/v15/v16/v17/v18