Clip
Description
Clips a tensor value between the specified minimum and maximum values.
Input
Three inputs:
x Tensor of type float16, float, or int32.
min: (optional) a scalar. The minimum value of x is not clipped if the scalar is missing.
max: (optional) a scalar. The maximum value of x is not clipped if it is missing.
Output
One output:
y: tensor of the clipped output. Has an identical data type and shape to those of the input.
Constraints
The min and max parameters cannot be left blank at the same time.
ONNX Opset Support
Opset v11/v12/v13/v14/v15/v16
Parent topic: Operators Specifications of the AI Framework