3D Average Pooling Layer¶
avgpool3d_layer_type
avgpool3d_layer_type(
pool_size=2,
stride=...,
input_shape=...,
padding="valid"
)
The avgpool3d_layer_type derived type provides a 3D average pooling layer.
This layer performs downsampling by dividing the input into pooling regions and computing the average of each region.
Arguments¶
pool_size (integer or integer, dimension(3)): Size of the pooling window. If a single integer is provided, the same value is used for depth, height, and width. Default:
2.stride (integer or integer, dimension(3)): Stride of the pooling operation. Default:
pool_size.input_shape (integer, dimension(:)): Shape of the input data (width, height, depth, channels).
padding (character(*)): Padding method, if any, to be applied to the input data prior to pooling. Refer to 3D padding layer for options. Default:
"valid", i.e. no padding.
Shape:¶
Input:
(width, height, depth, channels, batch_size).Output:
(width_out, height_out, depth_out, channels, batch_size).
where: