Grouped Convolution 2D Layer
R2026bLibraries:
Deep Learning Toolbox /
Deep Learning Layers /
Convolution and Fully Connected Layers
Description
The Grouped Convolution 2D Layer separates the input channels into groups and applies sliding convolutional filters. Use grouped convolutional layers for channel-wise separable (also known as depth-wise separable) convolution.
This block accepts 2-D image data in the SSC format (three dimensions
corresponding to two spatial dimensions and one channel dimension, in that order). It
convolves the input by moving the filters along the input vertically and horizontally and
computing the dot product of the weights and the input, and then adding a bias term. The block
combines the convolutions for each group independently. If the number of groups is equal to
the number of channels, then this block performs channel-wise convolution.
The exportNetworkToSimulink function generates this block to represent a groupedConvolution2dLayer object.
Limitations
The Layer parameter does not support
groupedConvolution2dLayerobjects that have thePaddingValueproperty set to"symmetric-exclude-edge".The Layer parameter does not support
groupedConvolution2dLayerobjects that have theDilationFactorproperty set to a value other than1.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"dlconvfclib/Grouped Convolution 2D Layer"
Example: add_block("dlconvfclib/Grouped Convolution 2D Layer","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Tips
To improve performance of generated code for a Grouped Convolution 2D Layer block, select the Automatically schedule for-loops (Embedded Coder) model configuration parameter.
Extended Capabilities
Version History
Introduced in R2026b