Deep Learning Toolbox


Deep Learning Toolbox

Create, analyze, and train deep learning networks


Deep Learning Toolbox™ (formerly Neural Network Toolbox™) provides a framework for designing and implementing deep neural networks with algorithms, pretrained models, and apps. You can use convolutional neural networks (ConvNets, CNNs) and long short-term memory (LSTM) networks to perform classification and regression on image, time-series, and text data. Apps and plots help you visualize activations, edit network architectures, and monitor training progress.

For small training sets, you can perform transfer learning with pretrained deep network models (including SqueezeNet, Inception-v3, ResNet-101, GoogLeNet, and VGG-19) and models imported from TensorFlow™-Keras and Caffe.


Networks and Architectures


Convolutional Neural Networks


Long Short-Term Memory Networks

Learn long-term dependencies in sequential data including signal, audio, text, and other time-series data. Construct and train long short-term memory (LSTM) networks to perform classification and regression. 

Working with LSTMs.

Network Architectures

Use various network structures such as series, directed acyclic graph (DAG), and recurrent architectures to build your deep learning network. DAG architectures offer more network topologies including those with skipped layers or layers connected in parallel. 

Working with different network architectures.

Network Design and Analysis


Design Deep Learning Networks


Analyze Deep Learning Networks


Analyzing a deep learning network architecture.

Transfer Learning and Pretrained Models

Import pretrained models into MATLAB for inference. 

Transfer Learning

Transfer learning is commonly used in deep learning applications. Access a pretrained network and use it as a starting point to learn a new task and quickly transfer learned features to a new task using a smaller number of training images.

Pretrained Models

Access the latest models from research with a single line of code. Import pretrained models including AlexNet, GoogLeNet, VGG-16, VGG-19, ResNet-101, Inception-v3, and SqueezeNet. See pretrained models for a complete list of models. 

Analysis of deep neural network models.


Visualize network topologies, training progress, and activations of the learned features in a deep learning network.

Network Visualization

Visualize a network topology with its layers and connections. Use the analyzeNetwork function to analyze the network architecture interactively.

Visualizing a deep learning network architecture.

Training Progress

View training progress in every iteration with plots of various metrics. Plot the validation metrics against the training metrics to visually analyze whether the network is overfitting. 

Monitoring your model's training progress.

Network Activations

Extract activations corresponding to a layer, visualize the learned features, and train a machine learning classifier using the activations. Use the deepDreamImage function to understand and diagnose network behavior by synthesizing images that strongly activate network layers and highlighting the learned features.

Visualizing activations.

Framework Interoperability

Interoperate with deep learning frameworks from MATLAB.

ONNX Converter


Interoperate with deep learning frameworks.

TensorFlow-Keras Importer

Import models from TensorFlow-Keras into MATLAB for inference and transfer learning using the importKerasNetwork function. 

Caffe Importer

Import models from Caffe Model Zoo into MATLAB for inference and transfer learning using the importCaffeNetwork function.

Importing models from Caffe Model Zoo into MATLAB.

Training Acceleration


GPU Acceleration

Speed up deep learning training and inference with high-performance NVIDIA® GPUs. You can perform training on a single workstation GPU or scale to multiple GPUs with DGX systems in data centers or on the cloud. You can use MATLAB with Parallel Computing Toolbox and most CUDA® enabled NVIDIA GPUs that have compute capability 3.0 or higher

Acceleration with GPUs.

Cloud Acceleration

Speed up deep learning training with cloud instances. Use high-performance GPU instances for the best results. 

Support for Parallel Computing Toolbox and MATLAB Parallel Server.

Scaling up deep learning in parallel and in the cloud.

Code Generation and Deployment


Code Generation

Use GPU Coder™ to generate optimized CUDA code from MATLAB code for deep learning, embedded vision, and autonomous systems. Use MATLAB Coder™ to generate C/C++ code to deploy deep learning networks to Intel® Xeon® and ARM® Cortex®-A processors.

MATLAB Compiler Support

Use MATLAB Compiler™ and MATLAB Compiler SDK™ to deploy trained networks as C/C++ shared libraries, Microsoft® .NET assemblies, Java® classes, and Python® packages from MATLAB programs. You can also train a shallow network model in the deployed application or component.

Sharing standalone MATLAB programs with MATLAB Compiler.

Shallow Neural Networks


Supervised Networks


Shallow neural networks.

Unsupervised Networks

Find relationships within data and automatically define classification schemes by letting the shallow network continually adjust itself to new inputs. Use self-organizing, unsupervised networks, competitive layers, and self-organizing maps. 

Self-organizing maps.

Stacked Autoencoders


Stacked autoencoders.

Latest Features

3-D Volume Data

Train deep learning networks on 3-D image data

Deep Network Designer

Create networks for computer vision, signal, and text applications, and generate MATLAB code from the app

Recurrent Networks

Combine LSTM and convolutional layers for video classification and gesture recognition

ONNX Support

Use ONNX with LSTM networks and Computer Vision Toolbox models

Deep Learning Layers

Create custom layers with multiple inputs or multiple outputs, grouped and channel-wise convolution layer, and tanh and ELU activation layers.


MATLAB for Deep Learning

Design, build, and visualize deep learning networks

Have Questions?

Contact Shounak Mitra, Deep Learning Toolbox Technical Expert

Get a Free Trial

30 days of exploration at your fingertips.

Download now

Ready to Buy?

Get pricing information and explore related products.

Are You a Student?

Get MATLAB and Simulink student software.

Learn more