MATLAB Coder Support Package for PyTorch® and LiteRT Models enables you to generate readable and portable C/C++ source code from a variety of pretrained PyTorch and LiteRT (formerly TensorFlow Lite) deep learning networks. You can integrate the complete application, including MATLAB and Simulink pre and postprocessing and deep learning models, into your existing C/C++ projects as source code, static libraries, or dynamic libraries. You can then deploy the complete application onto various hardware platforms, from desktop systems to embedded hardware.
The support package also enables you to generate CUDA® code from PyTorch and LiteRT models for modern NVIDIA® GPUs, including those embedded on NVIDIA Jetson™ and NVIDIA Clara™ platforms (with GPU Coder). You can apply code customizations, hardware-specific optimizations, and code verification using software-in-the-loop (SIL) and processor-in-the-loop (PIL) testing (with Embedded Coder). You can also generate code from Simulink models that contain the PyTorch and LiteRT models (with Simulink Coder).