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