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

Configures independent window reductions with no trainable parameters.

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

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