public MaxPooling2D(poolSize as Long, strides as Tuple, padding as String = "valid")
Configures independent window reductions with no trainable parameters.
| Parameter | Description |
|---|---|
poolSize | Positive square window size. |
strides | Positive (vertical, horizontal) steps; null uses the window size. |
padding | valid or same; odd padding goes to bottom/right. |
layer = MaxPooling2D<Float>(2, strides=(1, 2))