openvino.runtime.opset10.max_pool(data: Node | int | float | ndarray, strides: List[int], dilations: List[int], pads_begin: List[int], pads_end: List[int], kernel_shape: List[int], rounding_type: str = 'floor', auto_pad: str | None = None, index_element_type: str | None = 'i64', axis: int | None = 0, name: str | None = None) Node#

Perform max pooling operation and return both values and indices of the selected elements.

  • data – The node providing input data.

  • strides – The distance (in pixels) to slide the filter on the feature map over the axes.

  • dilations – The dilation of filter elements(distance between elements).

  • pads_begin – The number of pixels to add at the beginning along each axis.

  • pads_end – The number of pixels to add at the end along each axis.

  • kernel_shape – The pooling operation kernel shape.

  • rounding_type – Determines used rounding schema when computing output shape. Acceptable values are: [‘floor’, ‘ceil’]. Defaults to ‘floor’.

  • auto_pad – Determines how the padding is calculated. Acceptable values: [None, ‘same_upper’, ‘same_lower’, ‘valid’]. Defaults to None.

  • index_element_type – The data type used for the indices output of this operator. Defaults to i64.

  • axis – The first dimension in the data shape used to determine the maximum returned index value. The value is the product of all dimensions starting at the provided axis. Defaults to 0.

  • name – The optional name for the created output node.


The new node performing max pooling operation.