Pad
Description
Pads the input tensor.
Input
- x: input tensor of type float16, float, or int32.
- pads: input tensor of type int32 or int64.
- constant_value (optional): input tensor. The default value can be 0, an empty string, or False. If the selected mode is constant, it specifies the scalar value to be used.
Attribute
mode: string type. The supported modes are constant, reflect, and edge.
Output
y: output tensor of the identical data type as input x.
Constraints
If the value of mode is constant, the value of constant_value can only be 0.
ONNX Opset Support
Opset v11/v13/v14/v15/v16/v17/v18.
Parent topic: Supported ONNX Operators