openvino.runtime.opset15.pad#
- openvino.runtime.opset15.pad(arg: Node | int | float | ndarray, pads_begin: Node | int | float | ndarray, pads_end: Node | int | float | ndarray, pad_mode: str, arg_pad_value: Node | int | float | ndarray | None = None, name: str | None = None) Node #
Return a generic padding operation.
- Parameters:
arg – The node producing input tensor to be padded.
pads_begin – Number of padding elements to be added before position 0 on each axis of arg. Negative values are supported.
pads_end – Number of padding elements to be added after the last element. Negative values are supported.
pad_mode – “constant”, “edge”, “reflect” or “symmetric”
arg_pad_value – value used for padding if pad_mode is “constant”
- Returns:
Pad operation node.