depthToSpace2dLayer
R2026bDepth to space layer
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(
creates a 2-D depth to space layer, specifying the block size to rearrange the input
activation.blockSize)
layer = depthToSpace2dLayer(
creates a 2-D depth to space layer and sets the properties by using one or more
name-value arguments.blockSize,Name=Value)
Input Arguments
Name-Value Arguments
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)