depthToSpace2dLayer
Description
A 2-D depth to space layer permutes data from the depth dimension into blocks of 2-D spatial data.
Given an input feature map of size [H
W
C*
height*
width]
and blocks of size [height
width], the output feature map size is
[H*height
W*width
C].
This object requires Deep Learning Toolbox™.
Creation
Description
layer = depthToSpace2dLayer(blockSize)
creates a 2-D depth to
space layer, specifying the block size to rearrange the input activation. The
blockSize
input sets the BlockSize property.
layer = depthToSpace2dLayer(blockSize,Name,Value)
uses name-value
pairs to set the Mode
and
Name
properties. You can
specify multiple name-value pairs. Enclose each property name in quotes.
Example: depthToSpace2dLayer(blockSize,"Mode","CRD")
creates a 2-D
depth to space layer that orders data by column, row, and then depth.
Properties
Examples
Extended Capabilities
Version History
Introduced in R2021a
See Also
SpaceToDepthLayer
| depthToSpace
| spaceToDepth
Topics
- List of Deep Learning Layers (Deep Learning Toolbox)
- Deep Learning in MATLAB (Deep Learning Toolbox)