coder.loadDeepLearningNetwork
Load deep learning network model
Syntax
Description
loads a pretrained deep learningnet
= coder.loadDeepLearningNetwork(filename
)SeriesNetwork
orDAGNetwork
object saved in thefilename
MAT-file.filename
must be a valid MAT-file existing on the MATLAB®path containing a singleSeriesNetwork
orDAGNetwork
object.
calls a function that returns a pretrained deep learningnet
= coder.loadDeepLearningNetwork(functionname
)SeriesNetwork
orDAGNetwork
object.functionname
must be the name of a function existing on the MATLAB path that returns aSeriesNetwork
orDAGNetwork
object.
is the same asnet
= coder.loadDeepLearningNetwork(___,network_name
)net = coder.loadDeepLearningNetwork(filename)
with the option to name the C++ class generated from the network.network_name
is a descriptive name for the network object saved in the MAT-file or pointed to by the function. The network name must be achar
type that is a valid identifier in C++.
Use this function when generating code from a network object inference. This function generates a C++ class from this network. The class name is derived from the MAT-file name or the function name.
Examples
Input Arguments
Output Arguments
Limitations
coder.loadDeepLearningNetwork
does not support loading MAT-files with multiple networks. The MAT-file must contain only the network to be loaded.