Pool data to maximum value
The maximum pooling operation performs downsampling by dividing the input into pooling regions and computing the maximum value of each region.
Note
This function applies the maximum pooling operation to dlarray
data. If
you want to apply maximum pooling within a layerGraph
object
or Layer
array, use
one of the following layers:
performs downsampling by dividing the input dlY
= maxpool(dlX
,poolsize
)dlX
into rectangular or
cuboidal regions defined by poolsize
and computing the maximum 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
.
___ = maxpool(___,
specifies options using one or more name-value pair arguments. For example,
Name,Value
)'Stride',3
sets the stride of the pooling operation.
___ = maxpool(___,'DataFormat',FMT)
also
specifies the dimension format FMT
when dlX
is not a
formatted dlarray
, in addition to the input arguments in previous
syntaxes. The output dlY
is an unformatted dlarray
with the same dimension order as dlX
.