No project description provided
Reason this release was yanked:
0.0.1 is a test release not recommended for users
Project description
ONNX IR
[!NOTE] This is an adaptation of the
onnxscript.irmodule from the ONNX Script project: https://github.com/microsoft/onnxscript/tree/main/onnxscript/ir
An in-memory IR that supports the full ONNX spec, designed for graph construction, analysis and transformation.
Features ✨
- Full ONNX spec support: all valid models representable by ONNX protobuf, and a subset of invalid models (so you can load and fix them).
- Low memory footprint: mmap'ed external tensors; unified interface for ONNX TensorProto, Numpy arrays and PyTorch Tensors etc. No tensor size limitation. Zero copies.
- Straightforward access patterns: Access value information and traverse the graph topology at ease.
- Robust mutation: Create as many iterators as you like on the graph while mutating it.
- Speed: Performant graph manipulation, serialization/deserialization to Protobuf.
- Pythonic and familiar APIs: Classes define Pythonic apis and still map to ONNX protobuf concepts in an intuitive way.
- No protobuf dependency: The IR does not require protobuf once the model is converted to the IR representation, decoupling from the serialization format.
Code Organization 🗺️
_protocols.py: Interfaces defined for all entities in the IR._core.py: Implementation of the core entities in the IR, includingModel,Graph,Node,Value, and others._enums.py: Definition of the type enums that correspond to theDataTypeandAttributeTypeinonnx.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onnx_ir-0.0.1.tar.gz.
File metadata
- Download URL: onnx_ir-0.0.1.tar.gz
- Upload date:
- Size: 66.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a529f6e6827bc444bc07ac7772da1b2a2ff993b54f132070311ce1d8d6d15a
|
|
| MD5 |
d2ef123a2dbd3ad3871202d2fff28a5f
|
|
| BLAKE2b-256 |
38914a794b83a79acf886f3e2b39985132a4dbdfd1b290ae5916c266eb282477
|
File details
Details for the file onnx_ir-0.0.1-py3-none-any.whl.
File metadata
- Download URL: onnx_ir-0.0.1-py3-none-any.whl
- Upload date:
- Size: 71.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de6907c72d14d09a43d1444eed9d683a891453c8e43372842a4340850a1499d9
|
|
| MD5 |
eb46dc0aa79879cf0522e0925c18f477
|
|
| BLAKE2b-256 |
a39265a2dc527c0ef75847610f39069696ebbbe4c61a6e7c56b23f79805b4f54
|