Skip to content

Releases: onnx/ir-py

v0.1.12

28 Oct 23:31
Immutable release. Only release title and notes can be modified.
a764fb1

Choose a tag to compare

What's Changed

This update introduces the Value.replace_all_uses_with method, added for its convenience and discoverability. A new replace_graph_outputs option has been included, allowing users to replace graph outputs as well.

Note

Users are still responsible for assigning the original output name to the replacement value if they want to preserve the graph's signature.

BC Breaking

Bug fixes

  • Avoid override new_value info with None from old_value by @titaiwangms in #227

Other Changes

Full Changelog: v0.1.11...v0.1.12

v0.1.11

15 Oct 21:43
80aa86a

Choose a tag to compare

What's Changed

This release introduces a new API tofile() on Tensors. It helps avoid unnecessary copies with tobytes() when a model is saved with external data. The API is introduced in a backward-compatible manner. See #210 for more information.

API

  • Implement tofile on tensors to reduce data write time by 40% by @justinchuby in #210

Core

Graph Passes

Bug fixes

Other Changes

Full Changelog: v0.1.10...v0.1.11

v0.1.10

30 Sep 19:44
e657840

Choose a tag to compare

What's Changed

API

Graph Passes

  • [pass] Preserve value metadata in LiftConstantsToInitializersPass by @justinchuby in #204

Bug fixes

Full Changelog: v0.1.9...v0.1.10

v0.1.9

12 Sep 16:00
edee33f

Choose a tag to compare

What's Changed

Breaking Changes and Deprecations

API

Core

  • Support deserializing non-utf8 attributes in rare case by @justinchuby in #184

Documentation

  • Add missing .. versionadded:: for DataType.is_string by @iksnagreb in #177

Other Changes

Full Changelog: v0.1.8...v0.1.9

v0.1.8

05 Sep 14:14
a706e17

Choose a tag to compare

What's Changed

Note

This patch release includes a fix in the protobuf serialization logic to handle Boolean attributes for compatibility with protobuf>=6.

Bug fixes

API

  • Add more properties for numeric types to DataType by @iksnagreb in #171

Graph Passes

  • Support string tensors in DeduplicateInitializersPass and call_onnx_api by @iksnagreb in #169

Documentation

Full Changelog: v0.1.7...v0.1.8

v0.1.7

22 Aug 01:28
a55f5e8

Choose a tag to compare

What's Changed

API

  • Add meta field to attributes for metadata storage by @Copilot in #154
  • Expose the graph property in ir.Function by @justinchuby in #158
  • Default attribute type to INTS to avoid breaking BC by @justinchuby in #162
  • Expose DeduplicateHashedInitializersPass by @justinchuby in #163

Core

  • Update node deser logic to support out of order subgraphs by @justinchuby in #159

Graph Passes

  • Fix initializer handling in LiftSubgraphInitializersToMainGraphPass pass by @justinchuby in #148
  • [pass] Deduplicate initializers in subgraphs and fix bug in subgraph() by @justinchuby in #156
  • [pass] Create DeduplicateHashedInitializersPass by @justinchuby in #133

Documentation

Other Changes

  • Bump version to 0.1.7 by @justinchuby in #146
  • Bump actions/checkout from 4 to 5 by @dependabot[bot] in #153
  • Bump ruff from 0.12.8 to 0.12.9 in /requirements/lintrunner by @dependabot[bot] in #152
  • Bump editorconfig-checker from 3.2.1 to 3.4.0 in /requirements/lintrunner by @dependabot[bot] in #151
  • Adjust serde to remove outdated comments and fix error handling by @justinchuby in #149
  • Create a tabular model printer tool by @justinchuby in #155
  • Update license to a valid SPDX license expression by @justinchuby in #160
  • Bump types-pyyaml from 6.0.12.20250516 to 6.0.12.20250809 in /requirements/lintrunner by @dependabot[bot] in #143
  • Update pyproject.toml to require setuptools>=77 by @justinchuby in #161

Full Changelog: v0.1.6...v0.1.7

v0.1.6

11 Aug 23:40
ca183e7

Choose a tag to compare

What's Changed

Note

This patch release includes a fix for compatibility with PyTorch <2.7.0 in the tensor_adapters module. It is recommended that you update to this version if you leverage onnx_ir.tensor_adapters to interact with torch tensors.

Graph Passes

  • Create a name fix pass to ensure unique names for all values and nodes by @Copilot in #124

Bug fixes

  • Fix support for torch.float8_e8m0fnu for older versions of PyTorch by @justinchuby in #145

Full Changelog: v0.1.5...v0.1.6

v0.1.5

08 Aug 14:02
fced9bd

Choose a tag to compare

What's Changed

API

  • Add support for FLOAT8E8M0 data type by @Copilot in #128

Graph Passes

  • Create a identity-elimination pass by @Copilot in #121

Other Changes

Full Changelog: v0.1.4...v0.1.5

v0.1.4

03 Jul 23:56
29c1875

Choose a tag to compare

What's Changed

Note

This release includes a fix to the 4 bit dtype handling logic in the TensorProtoTensor.numpy() method. You should update to this version if you use onnx-ir to process 4 bit tensor data (uint4, int4, float4e2m1) numerically with NumPy.

Bug Fixes

API

  • [DataType] Add is_integer and is_signed queries by @iksnagreb in #110

Documentation

Other Changes

New Contributors

Full Changelog: v0.1.3...v0.1.4

v0.1.3

25 Jun 22:57
12047d2

Choose a tag to compare

What's Changed

API

Graph Passes

Bug fixes

Documentation

Other Changes

New Contributors

Full Changelog: v0.1.2...v0.1.3