Contenuto principale

Install MATLAB Coder Support Package for PyTorch and LiteRT Models

R2026b
Since R2026a

To add code generation support for PyTorch® and LiteRT models to MATLAB® and Simulink®, install the MATLAB Coder™ Support Package for PyTorch and LiteRT Models.

Install Support Package

  1. On the MATLAB Home tab, in the Environment section, select Add-Ons > Explore Add-Ons.

    Open Add-On explorer.

  2. In the Add-Ons Explorer window, search for MATLAB Coder Support Package for PyTorch and LiteRT Models.

    Select the support package for installation.

  3. Click Next to install the support package. To integrate PyTorch models in MATLAB and Simulink, the tool installs required software and third-party tools, including Python® and the Torch-MLIR library.

Note

On Windows, this support package requires the latest Microsoft® Visual C++® Redistributable. If you encounter missing dynamic-link library (DLL) errors when loading or running models, download and install the latest Microsoft Visual C++ Redistributable.

Update Support Package

On the MATLAB Home tab, in the Resources section, select Help > Check for Updates.

Uninstall Support Package

To uninstall the support package, first open the Add-Ons panel. To open the Add-Ons panel, click the Add-Ons icon on the left sidebar.

Then in the Add-Ons panel, click the Options button options next to the installed support package, and then click Uninstall.

See Also

Functions

Objects

Blocks

Topics