class_docstr: Max pool.
  
  Equivalent to partial application of :func:`max_pool`.
class_docstr_tok: ["Max","pool",".","Equivalent","to","partial","application","of",":","func",":","`","max_pool","`","."]
docstr: Max pool.
  
  Args:
    window_shape: Shape of the pooling window, same rank as value.
    strides: Strides of the pooling window, same rank as value.
    padding: Padding algorithm. Either ``VALID`` or ``SAME``.
    channel_axis: Axis of the spatial channels for which pooling is skipped.
    name: String name for the module.
docstr_tok: ["Max","pool",".","Args",":","window_shape",":","Shape","of","the","pooling","window",",","same","rank","as","value",".","strides",":","Strides","of","the","pooling","window",",","same","rank","as","value",".","padding",":","Padding","algorithm",".","Either","``","VALID","``","or","``","SAME","``",".","channel_axis",":","Axis","of","the","spatial","channels","for","which","pooling","is","skipped",".","name",":","String","name","for","the","module","."]
code: def __init__(
      self,
      window_shape: Union[int, Sequence[int]],
      strides: Union[int, Sequence[int]],
      padding: str,
      channel_axis: Optional[int] = -1,
      name: Optional[str] = None,
  ):
      """Max pool.
  
      Args:
        window_shape: Shape of the pooling window, same rank as value.
        strides: Strides of the pooling window, same rank as value.
        padding: Padding algorithm. Either ``VALID`` or ``SAME``.
        channel_axis: Axis of the spatial channels for which pooling is skipped.
        name: String name for the module.
      """
      super().__init__(name=name)
      self.window_shape = window_shape
      self.strides = strides
      self.padding = padding
      self.channel_axis = channel_axis
  
imports: from collections.abc import Sequence
  from typing import Optional, Union
  import warnings
  from haiku._src import module
  import jax
  from jax import lax
  import jax.numpy
  import numpy
label_desc: Use image node_id 1 to create a new MaxPool object from inherited base classes: hk with example: obj = MaxPool(window_shape, strides, padding, channel_axis, name)