Main Content

Depth Concatenation Layer

Depth concatenation layer

Since R2024b

  • Depth Concatenation Layer block

Libraries:
Deep Learning Toolbox / Deep Learning Layers / Combination Layers

Description

The Depth Concatenation Layer block takes inputs that have the same height and width and concatenates them along the channel dimension. This block accepts data that has dimensions corresponding to the format that you specify with the Data format block parameter.

The exportNetworkToSimulink function generates this block to represent a depthConcatenationLayer object.

Ports

Input

expand all

First input to concatenate, provided as an array that follows the format that you specify with the Data format parameter.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point

Second input to concatenate, provided as an array that follows the format that you specify with the Data format parameter.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point

Nth input to concatenate, provided as an array that follows the format that you specify with the Data format parameter. The block has a number of input ports equal to the value of the NumInputs property of the object that you specify with the Layer parameter.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point

Output

expand all

Concatenated output data. The output data has dimensions corresponding to the format that you specify with the Data format block parameter.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Main

Specify the name of a workspace variable that contains a depthConcatenationLayer object from a trained network. The Depth Concatenation Layer block configures itself by using the properties of the object.

Programmatic Use

Block Parameter: Layer
Type: workspace variable
Values: depthConcatenationLayer object
Default: 'layer'

Data format for the input data. The options use the same notation as the fmt argument of the dlarray object, except layer blocks do not support the Batch (B) dimension and instead assume an observation number of 1.

Programmatic Use

Block Parameter: DataFormat
Type: character vector
Values: 'SSC' | 'C' | 'CT' | 'SC' | 'SSSC'
Default: 'SSC'

Execution

Specify the discrete interval between sample time hits or specify another type of sample time, such as continuous (0) or inherited (-1). For more options, see Types of Sample Time (Simulink).

By default, the block inherits its sample time based upon the context of the block within the model.

Programmatic Use

Block Parameter: SampleTime
Type: character vector
Values: scalar
Default: '-1'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2024b