LiteRT
Libraries:
MATLAB Coder Support Package for PyTorch & LiteRT Models
Description
Add-On Required: This feature requires the MATLAB Coder Support Package for PyTorch and LiteRT Models add-on.
The LiteRT block loads a LiteRT model. The block uses the LiteRT model to run inference on the input data to compute the outputs. The block can generate deployable code.
To load a LiteRT model, use the LiteRT model file parameter. By default, the block has one input and output port, in1 and out1. When you load the LiteRT file, the block replaces these ports with the input and output ports specified in the file.
Examples
Ports
Input
Output
Parameters
Alternative Functionality
You can use a MATLAB Function block, along with the invoke object
function of a LiteRTModel object,
to compute output and generate code.
Extended Capabilities
Version History
Introduced in R2026a

