coder.CMSISNNConfig
R2026b(To be removed) Parameters to configure deep learning code generation with the CMSIS-NN library for Cortex-M targets
Since R2022a
coder.DeepLearningConfig("cmsis-nn") will be removed in a future
release. Instead, create a deep learning configuration object by using the coder.DeepLearningConfig function with the target library set to
"none", and set the CodeReplacementLibrary property of
the code configuration object to "ARM Cortex-M". For Simulink® workflows, use exportNetworkToSimulink (Deep Learning Toolbox). For information on updating your code, see Version History.
Description
The coder.CMSISNNConfig object contains CMSIS-NN library and
associated ARM® Cortex-M target specific parameters that codegen uses for generating C code for deep neural networks.
To use a coder.CMSISNNConfig object for code generation, assign it to
the DeepLearningConfig property of a code generation configuration object
that you pass to codegen.
Creation
Create a CMSIS-NN configuration object by using the coder.DeepLearningConfig function with target library set as
'cmsis-nn'.