La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Génération de code CPU depuis des applications MATLAB
Générer du code C/C++ pour le déploiement sur un ordinateur ou des cibles embarquées
Utilisez une combinaison de MATLAB® Coder™, Simulink® Coder et Embedded Coder® avec Deep Learning Toolbox™ pour générer du code MEX ou CPU autonome exécuté sur un ordinateur ou des cibles embarquées. Vous pouvez déployer le code autonome généré qui utilise Intel® MKL-DNN Library ou ARM® Compute Library. Vous pouvez également générer du code CPU générique qui n’appelle pas de fonction de bibliothèque tierce. Ou bien vous pouvez générer et déployer du code qui utilise des modèles TensorFlow™ pour effectuer des inférences.
Fonctions
codegen | Generate C/C++ code from MATLAB code |
coder.getDeepLearningLayers | Get the list of layers supported for code generation for a specific deep learning library |
coder.loadDeepLearningNetwork | Load deep learning network model |
coder.DeepLearningConfig | Create deep learning code generation configuration objects |
loadTFLiteModel | Load TensorFlow Lite model (depuis R2022a) |
predict | Compute deep learning network output for inference by using a TensorFlow Lite model (depuis R2022a) |
TFLiteModel | TensorFlow Lite model (depuis R2022a) |
Applications
MATLAB Coder | Generate C code or MEX function from MATLAB code |
Rubriques
Présentation
- Networks and Layers Supported for Code Generation (MATLAB Coder)
Choose a convolutional neural network that is supported for your target processor. - Load Pretrained Networks for Code Generation (MATLAB Coder)
Create aSeriesNetwork
,DAGNetwork
,yolov2ObjectDetector
,ssdObjectDetector
, ordlnetwork
object for code generation. - Code Generation for dlarray (MATLAB Coder)
Use deep learning arrays in MATLAB code intended for code generation. - Prerequisites for Deep Learning with TensorFlow Lite Models
Install products and configure environment for simulation and code generation with TensorFlow Lite models.
Applications
- Code Generation for Deep Learning on ARM Targets
This example shows how to generate and deploy code for prediction on an ARM®-based device without using a hardware support package. - Deep Learning Prediction with ARM Compute Using codegen
This example shows how to usecodegen
to generate code for a Logo classification application that uses deep learning on ARM® processors. - Deep Learning Code Generation on Intel Targets for Different Batch Sizes
This example shows how to use thecodegen
command to generate code for an image classification application that uses deep learning on Intel® processors. - Generate Digit Images Using Variational Autoencoder on Intel CPUs (MATLAB Coder)
Generate code for a trained VAE dlnetwork to generate hand-drawn digits. - Generate C++ Code for Object Detection Using YOLO v2 and Intel MKL-DNN
This example shows how to generate C++ code for the YOLO v2 Object detection network on an Intel® processor. - Deploy Signal Classifier Using Wavelets and Deep Learning on Raspberry Pi
Classify human electrocardiogram signals on a Raspberry Pi® using scalograms and a deep convolutional neural network. - Deploy Signal Segmentation Deep Network on Raspberry Pi
Generate a MEX function and a standalone executable to perform waveform segmentation on a Raspberry Pi. - Generate Code and Deploy MobileNet-v2 Network to Raspberry Pi
This example shows how to generate C++ code that uses the MobileNet-v2 pretrained network for object prediction. - Code Generation for Semantic Segmentation Application on ARM Neon Targets That Uses U-Net
Generate a static library that performs image segmentation by using the deep learning network U-Net on ARM targets. - Code Generation for LSTM Network on Raspberry Pi
Generate code for a pretrained long short-term memory network to predict Remaining Useful Life (RUI) of a machine. - Code Generation for LSTM Network That Uses Intel MKL-DNN
Generate code for a pretrained LSTM network that makes predictions for each step of an input timeseries. - Cross Compile Deep Learning Code for ARM Neon Targets
Generate library or executable code on host computer for deployment on ARM hardware target. - Generate INT8 Code for Deep Learning Network on Raspberry Pi (MATLAB Coder)
Generate code for deep learning network that performs inference computations in 8-bit integers. - Generate Generic C/C++ Code for Sequence-to-Sequence Regression That Uses Deep Learning
Generate C/C++ code for a trained CNN that does not depend on any third-party libraries. - Generate Code for LSTM Network and Deploy on Cortex-M Target (MATLAB Coder)
Generate a Processor-In-the-Loop (PIL) executable that runs on an STM32F746G-Discovery board. - Generate Code for TensorFlow Lite (TFLite) Model and Deploy on Raspberry Pi
Generate code that uses a TensorFlow Lite model for inference. - Deploy Super Resolution Application That Uses TensorFlow Lite (TFLite) Model on Host and Raspberry Pi
Generate code for a super resolution application that uses a TFLite model for inference.