coder.regenerateDeepLearningParameters
Regenerate files containing network learnables and states parameters
Since R2021b
Syntax
Description
returns a cell array of the file names containing the regenerated network learnables and
states parameters. networkFileNames
= coder.regenerateDeepLearningParameters(net
,parameterFile
)coder.regenerateDeepLearningParameters
regenerates
these files based on the learnables and states of the input SeriesNetwork
or DAGNetwork
network object.
returns a cell array of the file names containing the regenerated network learnables and
states parameters. networkFileNames
= coder.regenerateDeepLearningParameters(dlnet
,parameterFile
)coder.regenerateDeepLearningParameters
regenerates
these files based on the learnables and states of the input dlnetwork
object.
returns a cell array of the file names containing the regenerated network learnables and
states parameters by using the options specified by one or more
networkFileNames
= coder.regenerateDeepLearningParameters(___,Name,Value
)Name,Value
pair arguments.
Examples
Input Arguments
Output Arguments
Limitations
Only the network learnables and states can be updated by using the
coder.regenerateDeepLearningParameters
function. For modifications that
the code generator does not support, an error message is thrown. For example, using
coder.regenerateDeepLearningParameters
after changing the scale factor of
a leaky ReLU layer throws the following error message as scale factor is not a network
learnable.
Network architecture has been modified since the last code generation. Unable to accommodate the provided network in the generated code. Regenerate code for the provided network to reflect changes in the network. For more information, see Limitations to Regenerating Network Parameters After Code Generation.
Version History
Introduced in R2021b
See Also
Functions
codegen
|imagePretrainedNetwork
(Deep Learning Toolbox) |coder.loadDeepLearningNetwork
Objects
dlarray
(Deep Learning Toolbox) |dlnetwork
(Deep Learning Toolbox) |SeriesNetwork
(Deep Learning Toolbox) |DAGNetwork
(Deep Learning Toolbox)