Deep Learning Code Generation Fundamentals
R2026bFunctions, objects, and workflows that you can use to generate code for deep
learning networks
You can use GPU Coder™ in tandem with the Deep Learning Toolbox™ to generate code and deploy CNN on multiple embedded platforms that use NVIDIA® or ARM® GPU processors. The Deep Learning Toolbox provides simple MATLAB® commands for creating and interconnecting the layers of a deep neural network. The availability of pretrained networks and examples such as image recognition and driver assistance applications enable you to use GPU Coder for deep learning, without expert knowledge on neural networks, deep learning, or advanced computer vision algorithms.
Apps
Functions
Objects
Code Configuration Parameters
Topics
Basics
- Code Generation Overview
Overview of CUDA® code generation workflow for convolutional neural networks. - Supported Networks, Layers, and Classes
Networks, layers, and classes supported for code generation. - Analyze Performance of Code Generated for Deep Learning Networks
Analyze the performance of the generated CUDA code for deep learning networks. - Data Layout Considerations in Deep Learning
Fundamental data layout considerations for authoring example main functions.
Code Generation
- Load Pretrained Networks for Code Generation
Create adlnetworkobject, or an object detector for code generation. - Analyze Network for Code Generation
Check code generation compatibility of a deep learning network. - Generate CUDA Code for Deep Learning Networks
Generate C/C++/CUDA code for prediction from a deep learning network that does not depend on third-party libraries. - Code Generation for dlarray
Use deep learning arrays in MATLAB code intended for code generation.
Optimization and Quantization
- Quantization of Deep Neural Networks
Learn about deep learning quantization tools and workflows.
Parameter Updates
- Update Network Parameters at Run Time
Update deep learning network parameters at run-time without regenerating code. - Update Network Parameters After Code Generation
Perform post code generation updates of deep learning network parameters.
Code Generation for Third-Party Libraries
- Code Generation for Deep Learning Networks by Using cuDNN
Generate code for pretrained convolutional neural networks by using the cuDNN library. - Code Generation for Deep Learning Networks by Using TensorRT
Generate code for pretrained convolutional neural networks by using the TensorRT library. - Code Generation for Deep Learning Networks Targeting ARM Mali GPUs
Generate C++ code for prediction from a deep learning network targeting an ARM Mali GPU processor.





