Deep learning target library
R2026bTarget library for deep learning code generation
Description
App Configuration Pane: Deep Learning
The Deep learning library specifies the deep learning library
for code generation. You can also specify the deep learning target library in command line by
using the coder.DeepLearningConfig function.
Dependencies
For generating generic C/C++ code, or C/C++ code that uses third-party libraries such as Intel® MKL-DNN and ARM® Compute libraries, you must use the MATLAB Coder App.
For generating plain CUDA code, or CUDA code that uses NVIDIA® high-performance deep learning libraries, you must:
Use the GPU Coder App, or
Open the MATLAB Coder App, then set Output to CUDA in the Prepare section.
Settings
ARM Compute(To be removed) Generate code that uses the ARM Compute Library. Choosing this setting sets Language to
C++.This setting will be removed in a future release. Use
noneinstead. If you need to deploy to an ARM device that supports Neon instructions, set theInstructionSetExtensionsproperty of the code configuration object to"Neon v7".CMSIS-NN(To be removed) Generate code that uses the Common Microcontroller Software Interface Standard - Neural Network library. Choosing this setting sets Language to
C.This setting will be removed in a future release. Use
nonewith the ARM Cortex®-M code replacement library (CRL) instead.cuDNNGenerate code that uses the CUDA deep Neural Network library. Choosing this setting sets Language to
C++.TensorRTGenerate code that uses the NVIDIA TensorRT deep learning inference optimizer and run-time library. Choosing this setting sets Language to
C++.