Skip to main content
The recommended approach to convert a PyTorch model to LiteRT is a multi-step process: PyTorch → ONNX → TensorFlow (SavedModel) → LiteRT

Export the PyTorch model to ONNX

Use torch.onnx.export to convert the PyTorch model to ONNX format:

Convert ONNX to LiteRT

Once the model has been exported to ONNX, follow the instructions in Export an ONNX model to LiteRT to complete the conversion to LiteRT format.