newlgraph = disconnectLayers(lgraph,s,d)
disconnects the source layer s from the destination layer
d in the layer graph lgraph. The new
layer graph, newlgraph, contains the same layers as
lgraph, but excludes the connection between
s and d.
Layer graph, specified as a LayerGraph object. To create a layer
graph, use layerGraph.
s — Connection source character vector | string scalar
Connection source, specified as a character vector or a string scalar.
If the source layer has a single output, then s is
the name of the layer.
If the source layer has multiple outputs, then s is
the layer name followed by the character / and the name of the layer output:
'layerName/outputName'.
Example: 'conv1'
Example: 'mpool/indices'
d — Connection destination character vector | string scalar
Connection destination, specified as a character vector or a string scalar.
If the destination layer has a single input, then d is the name
of the layer.
If the destination layer has multiple inputs, then d is the
layer name followed by the character / and the name of the layer input:
'layerName/inputName'.