Pool data to average values over spatial dimensions
The average pooling operation performs downsampling by dividing the input into pooling regions and computing the average value of each region.
Note
This function applies the average pooling operation to dlarray
data. If
you want to apply average pooling within a layerGraph
object
or Layer
array, use
one of the following layers:
performs downsampling by dividing the input dlY
= avgpool(dlX
,poolsize
)dlX
into rectangular or
cuboidal regions defined by poolsize
and computing the average value of
the data in each region. The input dlX
is a formatted
dlarray
with dimension labels. Pooling acts on spatial dimensions
labeled 'S'
. The output dlY
is a formatted
dlarray
with the same dimension labels as
dlX
.
specifies options using one or more name-value pair arguments. For example,
dlY
= avgpool(dlX
,poolsize
,Name,Value
)'Stride',3
sets the stride of the pooling operation.
dlarray
| dlconv
| dlfeval
| dlgradient
| maxpool