Efficient in-memory representation for ONNX, in Python
See the code
An in-memory IR that supports the full ONNX spec, designed for graph construction, analysis and transformation.
Via pip:
pip install onnx-ir
Or from source:
pip install git+https://github.com/onnx/ir-py.git
_protocols.py: Interfaces defined for all entities in the IR._core.py: Implementation of the core entities in the IR, including Model, Graph, Node, Value, and others._enums.py: Definition of the type enums that correspond to the DataType and AttributeType in onnx.proto._name_authority.py: The authority for giving names to entities in the graph, used internally._linked_list.py: The data structure as the node container in the graph that supports robust iteration and mutation. Internal._metadata.py: Metadata store for all entities in the IR.Overall
Maintained
Code review
Contributors
PyPI
Latest release
Releases this year
245 followers · starred May 2025
11 followers · starred Mar 2026
60 followers · starred May 2025
Efficient in-memory representation for ONNX, in Python
See the code
An in-memory IR that supports the full ONNX spec, designed for graph construction, analysis and transformation.
Via pip:
pip install onnx-ir
Or from source:
pip install git+https://github.com/onnx/ir-py.git
_protocols.py: Interfaces defined for all entities in the IR._core.py: Implementation of the core entities in the IR, including Model, Graph, Node, Value, and others._enums.py: Definition of the type enums that correspond to the DataType and AttributeType in onnx.proto._name_authority.py: The authority for giving names to entities in the graph, used internally._linked_list.py: The data structure as the node container in the graph that supports robust iteration and mutation. Internal._metadata.py: Metadata store for all entities in the IR.Overall
Maintained
Code review
Contributors
PyPI
Latest release
Releases this year
245 followers · starred May 2025
11 followers · starred Mar 2026
60 followers · starred May 2025