# Deploy optimized ML models with ONNX Runtime on Arm platforms

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/)
- [Understand ONNX fundamentals and architecture](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/01_fundamentals/)
- [Set up your development environment](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/02_setup/)
- [Generate a synthetic Sudoku digit dataset](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/03_preparingdata/)
- [Train the digit recognizer](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/04_training/)
- [Run inference and evaluate the model](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/05_inference/)
- [Build the Sudoku processor pipeline](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/06_sudokuprocessor/)
- [Optimize the model for Arm64 deployment](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/07_optimisation/)
- [Deploy the model to Android](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/08_android/)
- [Next Steps](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/onnx/_next-steps/)

## About this Learning Path

| Attribute        | Details                           |
|------------------|-----------------------------------|
| Skill level:     | Advanced                          |
| Reading time:    | 4 hrs                             |
| Last updated:    | 12 Nov 2026                       |
| Author:          | Dawid Borycki [GitHub](https://github.com/dawidborycki) |
| Arm IP:          | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors), [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) |
| Tags:            | [AI/ML](https://learn.arm.com/tag/ai-ml/), [Windows](https://learn.arm.com/tag/windows), [Linux](https://learn.arm.com/tag/linux), [macOS](https://learn.arm.com/tag/macos), [Android](https://learn.arm.com/tag/android), [Python](https://learn.arm.com/tag/python), [PyTorch](https://learn.arm.com/tag/pytorch), [TensorFlow](https://learn.arm.com/tag/tensorflow), [ONNX](https://learn.arm.com/tag/onnx), [Android Studio](https://learn.arm.com/tag/android-studio), [Kotlin](https://learn.arm.com/tag/kotlin) |

### Who is this for?
This is an advanced topic for developers who want to build, optimize, and deploy machine learning models using ONNX on Arm64-based platforms such as Raspberry Pi, Arm-based laptops, cloud instances, or Android smartphones.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Explain what ONNX is and how it enables model portability across ML frameworks
- Build and export a neural network model in Python to ONNX format
- Run inference using ONNX Runtime on Arm64 platforms
- Apply model optimization techniques to improve performance
- Deploy an optimized ONNX model in an Android application

### Prerequisites
Before starting, you'll need the following prerequisites:
- A development machine with Python 3.10 or 3.11 installed (Prebuilt ONNX Runtime packages for Arm platforms don’t yet support Python 3.12)
- Basic familiarity with PyTorch or TensorFlow
- An Arm64 device such as a Raspberry Pi or Android smartphone
- Android Studio (required only for the final deployment section)

### Summary
You’ll train a compact digit recognizer, export it to ONNX, and deploy it with ONNX Runtime on Arm platforms. First, you’ll generate a synthetic Sudoku dataset, validate PyTorch and ONNX Runtime results, and apply optimizations such as layer fusion. Then, you’ll select and verify execution providers for edge devices and Android, including NNAPI when available.
