newlgraph= disconnectLayers(lgraph,s,d)disconnects the source layersfrom the destination layerdin the layer graphlgraph. The new layer graph,newlgraph, contains the same layers aslgraph, but excludes the connection betweensandd.
Layer graph, specified as aLayerGraphobject. To create a layer graph, uselayerGraph.
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, thensis the name of the layer.
If the source layer has multiple outputs, thensis 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, thendis the name of the layer.
If the destination layer has multiple inputs, thendis the layer name followed by the character / and the name of the layer input:'layerName/inputName'.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.