Class ov::op::v8::MaxPool#

class MaxPool : public ov::op::util::MaxPoolBase#

MaxPooling operation with values and indices calculated as individual outputs.

Public Functions

MaxPool() = default#

Constructs an empty MaxPool operation.

MaxPool(const Output<Node> &arg, const Strides &strides, const Strides &dilations, const Shape &pads_begin, const Shape &pads_end, const Shape &kernel, const op::RoundingType rounding_type = op::RoundingType::FLOOR, const PadType auto_pad = op::PadType::EXPLICIT, const element::Type index_element_type = element::i64, const int64_t axis = 0)#

Constructs a parametrized MaxPool operation.

Parameters:
  • argOutput of a node producing the feature tensor to be pooled.

  • strides – The strides of the pooling filter.

  • dilations – The dilations of the pooling filter.

  • pads_begin – Paddings at the beginning of each spatial axis.

  • pads_end – Paddings at the end of each spatial axis.

  • kernel – The kernel shape.

  • rounding_type – Whether to use ceiling or floor rounding type while computing the output shape.

  • auto_pad – The pad type for automatic calculation of the padding sizes.

  • index_element_type – The data type used by the second output tensor containing the selected indices.

  • axis – Indicates a dimension in the input data shape which should be used as a starting point for calculation of the upper bound of allowed values of the indices output.

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

const Strides &get_dilations() const noexcept#
Returns:

The pooling filter’s dilations.

element::Type get_index_element_type() const noexcept#
Returns:

The data type of the second output tensor (indices).

virtual bool has_evaluate() const override#

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