Class ov::op::v12::Pad#

class Pad : public ov::op::util::PadBase#

Generic padding operation.

Public Functions

Pad() = default#

Constructs a Pad-12 operation.

Pad(const Output<Node> &arg, const Output<Node> &pads_begin, const Output<Node> &pads_end, PadMode pad_mode)#

Constructs a Pad-12 operation.

Parameters:
  • arg – The output producing input tensor to be padded.

  • pads_begin – The output which specifies the number of padding elements to add (or remove) before position 0 on each axis of arg.

  • pads_end – The output which specifies the number of padding elements to add (or remove) after the last element on each axis.

  • pad_mode – The padding mode: CONSTANT, EDGE, REFLECT or SYMMETRIC.

Pad(const Output<Node> &arg, const Output<Node> &pads_begin, const Output<Node> &pads_end, const Output<Node> &arg_pad_value, PadMode pad_mode)#

Constructs a Pad-12 operation.

Parameters:
  • arg – The output producing input tensor to be padded.

  • pads_begin – The output which specifies the number of padding elements to add (or remove) before position 0 on each axis of arg.

  • pads_end – The output which specifies the number of padding elements to add (or remove) after the last element on each axis.

  • arg_pad_value – The scalar output with the value used for padding if pad_mode is CONSTANT

  • pad_mode – The padding mode: CONSTANT, EDGE, REFLECT or SYMMETRIC.

virtual bool has_evaluate() const override#

Allows to get information about availability of evaluate method for the current operation.

virtual bool evaluate(ov::TensorVector &outputs, const ov::TensorVector &inputs) const override#

Evaluates the op on input_values putting results in output_values.

Parameters:
  • output_values – Tensors for the outputs to compute. One for each result

  • input_values – Tensors for the inputs. One for each inputs.

Returns:

true if successful