Skip to content

🧪 AveragePooling2DLayer

An average pooling 2D Layer.

Parent type: Layer

Parameters:

Name Type Description Default
kernelSize Int the size of the kernel -
stride Int the stride of the pooling -1
padding Int the padding of the pooling 0
Stub code in AveragePooling2DLayer.sdsstub

@Experimental
@Category(DataScienceCategory.ModelingQNeuralNetwork)
class AveragePooling2DLayer(
    @PythonName("kernel_size") kernelSize: Int,
    stride: Int = -1,
    padding: Int = 0
) sub Layer {
    /**
     * Get the input_size of this layer.
     */
    @PythonName("input_size") attr inputSize: ModelImageSize
    /**
     * Get the output_size of this layer.
     */
    @PythonName("output_size") attr outputSize: ModelImageSize
}

inputSize

Get the input_size of this layer.

Type: ModelImageSize

outputSize

Get the output_size of this layer.

Type: ModelImageSize