Name — Layer name '' (default) | character vector | string scalar
Layer name, specified as a character vector or a string scalar.
To include a layer in a layer graph, you must specify a nonempty unique layer name. If you train
a series network with the layer and Name is set to '',
then the software automatically assigns a name to the layer at training time.
Data Types: char | string
NumInputs — Number of inputs 3 (default)
Number of inputs of the layer.
There are three inputs to this layer:
'in' — Input feature map to unpool.
'indices' — Indices of the maximum value in each pooled region. This is output by the max pooling layer.
'size' — Output size of unpooled feature map. This is output by the max pooling layer.
Use the input names when connecting or disconnecting the max unpooling layer to other layers using connectLayers or disconnectLayers.
Create a max pooling layer, and set the 'HasUnpoolingOutputs' property as true. This property gives the max pooling layer two additional outputs,'indices' and 'size', which enables unpooling the layer. Also create a max unpooling layer.
layers =
2x1 Layer array with layers:
1 'mpool' Max Pooling 2x2 max pooling with stride [2 2] and padding [0 0 0 0]
2 'unpool' Max Unpooling Max Unpooling
Sequentially connect layers by adding them to a layerGraph. This step connects the 'out' output of the max pooling layer to the 'in' input of the max unpooling layer.