Documentation

Deep Learning withMATLABCoder

Generate C++ code for deep learning neural networks (requires Deep Learning Toolbox™)

Deep learning is a branch of machine learning that teaches computers to do what comes naturally to humans: learn from experience. The learning algorithms use computational methods to “learn” information directly from data without relying on a predetermined equation as a model. Deep learning uses convolutional neural networks (CNNs) to learn useful representations of data directly from images.

You can useMATLAB®Coder™with Deep Learning Toolbox to generate C++ code from a trained CNN. You can deploy the generated code to an embedded platform that uses an Intel®or ARM®processor.

Functions

codegen Generate C/C++ code from MATLAB code
cnncodegen Generate code and build static library for Series or DAG Network
coder.loadDeepLearningNetwork Load deep learning network model
coder.DeepLearningConfig Create deep learning code generation configuration objects
coder.MklDNNConfig Parameters to configure deep learning code generation with the Intel Math Kernel Library for Deep Neural Networks
coder.getDeepLearningLayers Get convolutional neural network layers supported for code generation for a specific deep learning library

Topics

Prerequisites for Deep Learning with MATLAB Coder

Install products and configure environment for code generation for deep learning networks.

Workflow for Deep Learning Code Generation with MATLAB Coder

Generate code for prediction from a pretrained network.

Deep Learning Networks and Layers Supported for C++ Code Generation

Choose a convolutional neural network that is supported for your target processor.

Load Pretrained Networks for Code Generation

创建一个SeriesNetworkorDAGNetworkobject for code generation.

代码生成与可深度学习网络L-DNN

Generate C++ code for prediction from a deep learning network, targeting an Intel CPU.

Code Generation for Deep Learning Networks with ARM Compute Library

Generate C++ code for prediction from a deep learning network, targeting an ARM processor.

Related Information

Featured Examples