LiteRTModel
Description
Add-On Required: This feature requires the MATLAB Coder Support Package for PyTorch and LiteRT Models add-on.
You can use LiteRTModel objects to execute the model or to generate code in MATLAB® or Simulink®.
Creation
Create a LiteRTModel object by using the loadLiteRTModel
function.
Properties
Object Functions
summary | Display input and output specifications of PyTorch ExportedProgram or LiteRT model |
inputSpecifications | Return input specifications for functions in PyTorch ExportedProgam or LiteRT model |
outputSpecifications | Return output specifications for functions in PyTorch ExportedProgram or LiteRT model |
invoke | Run inference on a PyTorch ExportedProgram or LiteRT model input to compute output |
Examples
Limitations
You cannot save the LiteRTModel object from workspace to a
MAT-file.
Extended Capabilities
Version History
Introduced in R2026a