klyn.math.nn.layers.MaxPooling2D.MaxPooling2D
constructor
public MaxPooling2D(poolSize as Long = 2l, strides as Long = -1l, padding as String = "valid")
Description

Configures independent window reductions with no trainable parameters.

Parameters
ParameterDescription
poolSizePositive square window size.
stridesPositive shared step; -1 uses the window size.
paddingvalid or same; odd padding goes to bottom/right.
Throws
  • ValueException for invalid options.
Example

layer = MaxPooling2D<Float>(2, strides=1)