MATLAB Coder Interface for Deep Learning
Use MATLAB Coder to generate C and C++ code for deep learning networks
4.8K 次下载
更新时间
2025/10/15
MATLAB Coder generates C and C++ code from MATLAB code for a variety of hardware platforms, from desktop systems to embedded hardware. It supports most of the MATLAB language and a wide range of toolboxes.
With MATLAB Coder or Simulink Coder, MATLAB Coder Interface for Deep Learning provides the ability to generate generic, target-independent C/C++ code for deep learning networks. You can deploy a variety of pretrained deep learning networks including YOLOX, ResNet-50, SqueezeNet, and MobileNet. You can generate optimized code for pre-processing and post-processing along with your trained deep learning networks to deploy complete applications. When used in Simulink with Deep Learning Toolbox and without MATLAB Coder or Simulink Coder, you can accelerate simulations of Simulink models that include deep learning blocks.
Code replacement libraries can be used to incorporate processor-specific intrinsics for the target hardware (e.g. ARM Cortex-A/M processors). Additionally, it provides the option to generate code that calls into the following target-specific, optimized libraries:
- Intel oneAPI Deep Neural Network Library (oneDNN, formerly MKL-DNN): For Intel CPUs that support AVX2
- ARM Compute Library: For ARM Cortex-A processors that support NEON instructions
For more information on building supported optimization libraries for deployment onto target hardware, please see these links:
- MATLAB Coder: How do I build the Intel MKL-DNN library for Deep Learning C++ code generation and deployment?
- MATLAB Coder: How do I build the ARM Compute Library for Deep Learning C++ code generation and deployment?
To learn more about the recommended settings for optimizing the inference perfomance of plain, library-independent C/C++ code generated from deep learning networks, please see the below link:
This support package is functional for R2018b and beyond.
If you have download or installation problems, please contact Technical Support - https://www.mathworks.com/support/contact_us.html
MATLAB 版本兼容性
创建方式
R2018b
兼容 R2018b 到 R2026a 的版本
平台兼容性
Windows macOS (Apple 芯片) macOS (Intel) Linux类别
- AI and Statistics > Deep Learning Toolbox >
- Code Generation > MATLAB Coder > Deep Learning with MATLAB Coder >
在 Help Center 和 MATLAB Answers 中查找有关 Deep Learning Toolbox 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!