ONNX defines a shared file format and operator set so models can move between training frameworks and inference runtimes. A Python package helps build, inspect, and convert graphs.
Overview
Open Neural Network Exchange (ONNX) is an ecosystem for machine learning model interoperability. It specifies an extensible computation graph, built-in operators, and standard data types, with emphasis on inferencing for both deep learning and traditional ML models.
A common representation lets teams train in one framework and deploy with another runtime, tool, or hardware backend without rewriting the model by hand. Documentation covers the intermediate representation, versioning rules, operator catalogs, and Python APIs for graph manipulation.
The Python package adds utilities for shape and type inference, opset version conversion, and general graph programming tasks. Released wheels are published for installation via PyPI, with optional weekly packages for early testing.
ONNX is community-governed under the Linux Foundation AI umbrella, with working groups, special interest groups, and public contribution processes for evolving the specification.
Key features
- Shared model file format
- Standard operator definitions
- Cross-framework interoperability
- Computation graph specification
- Python graph programming utilities
- Shape and type inference
- Opset version conversion
- Hardware runtime compatibility
Use cases
- Exporting models between frameworks
- Portable inference deployment
- Graph inspection and transformation
- Hardware-optimized runtime handoff
- Standardized operator definitions