Class ov::op::util::MaxPoolBase

class MaxPoolBase : public ov::op::Op

Subclassed by ov::op::v1::MaxPool, ov::op::v8::MaxPool

Public Functions

MaxPoolBase(const Output<Node> &arg, const Strides &strides, const Shape &pads_begin, const Shape &pads_end, const Shape &kernel, const op::RoundingType rounding_mode = op::RoundingType::FLOOR, const PadType auto_pad = op::PadType::EXPLICIT)
Parameters
  • arg – The node producing the input data batch tensor.

  • strides – The strides.

  • pads_begin – The beginning of padding shape.

  • pads_end – The end of padding shape.

  • kernel – The kernel shape.

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

  • auto_pad – The pad type for automatically computing padding sizes.

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.

inline const Shape &get_kernel() const
Returns

The kernel shape.

inline const Strides &get_strides() const
Returns

The strides.

inline const Shape &get_pads_begin() const
Returns

The beginning of padding shape.

inline const Shape &get_pads_end() const
Returns

The end of padding shape.

inline PadType get_auto_pad() const
Returns

The pad type for pooling.

inline op::RoundingType get_rounding_type() const
Returns

The ceiling mode being used for output shape computations