ngraph.opset7.pad

ngraph.opset7.pad(arg: Union[_pyngraph.Node, int, float, numpy.ndarray], pads_begin: Union[_pyngraph.Node, int, float, numpy.ndarray], pads_end: Union[_pyngraph.Node, int, float, numpy.ndarray], pad_mode: str, arg_pad_value: Optional[Union[_pyngraph.Node, int, float, numpy.ndarray]] = None, name: Optional[str] = None) _pyngraph.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.

  • pads_end – number of padding elements to be added after the last element.

  • pad_mode – “constant”, “edge”, “reflect” or “symmetric”

  • arg_pad_value – value used for padding if pad_mode is “constant”

Returns

Pad operation node.