LiteRT
R2026bLibraries:
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
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"dlosslib/LiteRT"
Example: add_block("dlosslib/LiteRT","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
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

