microsoft/onnxscript v0.7.0
microsoft/onnxscript
Captured source
source ↗published Apr 20, 2026seen Jun 26captured 6dhttp 200method plain
v0.7.0
Repository: microsoft/onnxscript
Tag: v0.7.0
Published: 2026-04-20T17:55:07Z
Prerelease: no
Release notes:
What's Changed
Optimizer and Rewriter
- [Rewriter] Extend list of supported commutative operations by @iksnagreb in https://github.com/microsoft/onnxscript/pull/2741
- fix(fuse_batchnorm): support convtranpose + bn fusion with group != 1 by @AyoubMDL in https://github.com/microsoft/onnxscript/pull/2879
- optimizer: Prevent constant folding of DynamicQuantizeLinear by @Copilot in https://github.com/microsoft/onnxscript/pull/2865
- Unify failure-handling in rewrite-rule by @gramalingam in https://github.com/microsoft/onnxscript/pull/2866
- Fix non-deterministic rewriter behavior in multi-output pattern matching by @Copilot in https://github.com/microsoft/onnxscript/pull/2880
- Fix BatchNorm fusion producing invalid ONNX when Conv nodes share weight initializers by @Copilot in https://github.com/microsoft/onnxscript/pull/2883
- Add fusion rule to remove Expand before broadcast-capable binary operators by @Copilot in https://github.com/microsoft/onnxscript/pull/2862
- Use logging instead of print in RewritePass by @tgolsson in https://github.com/microsoft/onnxscript/pull/2835
- fix: normalize cache key dtype to prevent initializer name collisions by @gramalingam in https://github.com/microsoft/onnxscript/pull/2888
ONNX IR
- Refactor schemas to use the onnx_ir version by @justinchuby in https://github.com/microsoft/onnxscript/pull/2797
Torch Lib
- Add converter torch aten::histc by @xadupre in https://github.com/microsoft/onnxscript/pull/2796
- Trace single op.SplitToSequence by @titaiwangms in https://github.com/microsoft/onnxscript/pull/2817
- Fix bicubic antialias export: use cubic_coeff_a=-0.5 instead of -0.75 by @Copilot in https://github.com/microsoft/onnxscript/pull/2849
- [torchlib] Add missing dtype parameter to aten_mean_dim by @linusjuni in https://github.com/microsoft/onnxscript/pull/2885
- [torchlib] Fix torchvision::roi_align lowering to accept 7-arg schema by @FraGirla in https://github.com/microsoft/onnxscript/pull/2830
Core ONNX Script
- First version of GraphBuilder by @gramalingam in https://github.com/microsoft/onnxscript/pull/2814
- Allow GraphBuilder to call script functions by @gramalingam in https://github.com/microsoft/onnxscript/pull/2820
- Add GraphBuilder.subgraph() and TensorType.to_ir() for control-flow ops by @gramalingam in https://github.com/microsoft/onnxscript/pull/2824
- Support outer scope value reference in script by @gramalingam in https://github.com/microsoft/onnxscript/pull/2831
- Expose OpBuilder as onnxscript.OpBuilder by @gramalingam in https://github.com/microsoft/onnxscript/pull/2840
- Extend graph construction utility by @gramalingam in https://github.com/microsoft/onnxscript/pull/2842
- Implement schema-based input/attribute partitioning in GraphBuilder by @gramalingam in https://github.com/microsoft/onnxscript/pull/2837
- Replace input-constraint asserts with TranslationError in converter by @gramalingam in https://github.com/microsoft/onnxscript/pull/2845
- Support None as op input in GraphBuilder by @justinchuby in https://github.com/microsoft/onnxscript/pull/2868
- Add parent/root tracking to GraphBuilder for subgraph Parameter realization by @gramalingam in https://github.com/microsoft/onnxscript/pull/2877
- Add input() and add_output() methods to GraphBuilder by @justinchuby in https://github.com/microsoft/onnxscript/pull/2828
- Handling initializers in GraphBuilder by @gramalingam in https://github.com/microsoft/onnxscript/pull/2889
- Make GraphBuilder.__init__ use keyword-only args after graph by @gramalingam in https://github.com/microsoft/onnxscript/pull/2893
- Trivial cleanup of onnxscript converter by @gramalingam in https://github.com/microsoft/onnxscript/pull/2839
New Features
- Add onnxscript.nn module with Module and Parameter classes by @justinchuby in https://github.com/microsoft/onnxscript/pull/2819
- Add nn.Sequential: callable ModuleList that chains forward calls by @justinchuby in https://github.com/microsoft/onnxscript/pull/2823
- Update
nn.Sequentialsignature to match PyTorch (*modulesvarargs) by @Copilot in https://github.com/microsoft/onnxscript/pull/2827
Other Changes
- Raise version converter error when function attribute is RefAttr by @titaiwangms in https://github.com/microsoft/onnxscript/pull/2806
- Update ruff version to 0.15.1 by @justinchuby in https://github.com/microsoft/onnxscript/pull/2809
- Add back inliner to version converter by @titaiwangms in https://github.com/microsoft/onnxscript/pull/2813
- Remove unused function before version converter by @titaiwangms in https://github.com/microsoft/onnxscript/pull/2816
New Contributors
- @FraGirla made their first contribution in https://github.com/microsoft/onnxscript/pull/2830
- @linusjuni made their first contribution in https://github.com/microsoft/onnxscript/pull/2885
- @tadani3 made their first contribution in https://github.com/microsoft/onnxscript/pull/2894
Full Changelog: https://github.com/microsoft/onnxscript/compare/v0.6.2...v0.7.0