Main Content

Deep Learning Arrays

Code generation for deep learning arrays

A deep learning array stores data with optional data format labels for custom training loops, and enables functions to compute and use derivatives through automatic differentiation. When generating code for dlnetwork network objects, use dlarray to specify input data with optional data format labels.


Code Generation for dlarray

Use deep learning arrays in MATLAB code intended for code generation.

dlarray Limitations for Code Generation

Adhere to code generation limitations for deep learning arrays.