klyn.math.nn.layers.AveragePooling2D.AveragePooling2D
constructor
public AveragePooling2D(poolSize as Long, strides as Tuple, padding as String = "valid")
Description

Configures independent window reductions with no trainable parameters.

Parameters
ParameterDescription
poolSizePositive square window size.
stridesPositive (vertical, horizontal) steps; null uses the window size.
paddingvalid or same; odd padding goes to bottom/right.
Throws
  • ValueException for invalid options.
Example

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