replaceLayer
Replace layer in neural network
Syntax
Description
replaces the layer netUpdated
= replaceLayer(net
,layerName
,layers
)layerName
in the dlnetwork
object net
with the layers in layers
.
replaceLayer
connects the layers in
layers
sequentially and connects
layers
into the network.
replaces the layer specified by netUpdated
= replaceLayer(net
,layerPath
,layers
)layerPath
in the
dlnetwork
object net
with the layers in
layers
. (since R2024a)
additionally specifies the method of reconnecting layers.netUpdated
= replaceLayer(___,ReconnectBy=mode
)