Main Content

Export Deep Neural Networks

Export networks to external deep learning platforms

Export Deep Learning Toolbox™ neural networks to TensorFlow™ 2 and the ONNX™ model format. For more information, see Pretrained Deep Neural Networks and Interoperability Between Deep Learning Toolbox, TensorFlow, PyTorch, and ONNX.

You must have support packages to run the export functions in Deep Learning Toolbox. If the support package is not installed, each function provides a download link to the corresponding support package in the Add-On Explorer. A recommended practice is to download the support package to the default location for the version of MATLAB® you are running. You can also directly download the support packages from the following links.

Diagram showing the interoperability between Deep Learning Toolbox, TensorFlow, ONNX, and PyTorch.

Functions

exportNetworkToTensorFlowExport Deep Learning Toolbox network to TensorFlow (Since R2022b)
exportONNXNetworkExport network to ONNX model format

Topics