expandLayers
Syntax
Description
expands all network layers in the netUpdated = expandLayers(net)dlnetwork object net,
returning an equivalent network with no network layers. The software replaces each networkLayer with
the layers it contains. The name of the network layer and a colon ":"
delimiter are appended to the start of the names of the replacement layers. For example, the
software replaces a network layer named "subnet" containing a
fully-connected layer named "fc" with a fully-connected layer named
"subnet:fc".
expands only the network layers specified by name.netUpdated = expandLayers(net,layerNames)
expands only the network layers specified by index.netUpdated = expandLayers(net,layerIndices)
specifies options using one or more name-value arguments with any of the previous syntaxes.
For example, specifying netUpdated = expandLayers(___,Name=Value)Delimiter="@" expands network layers and names
the expanded layers "subnet@layerName" instead of
"subnet:layerName".
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2024a

