Skip to content

Releases: microsoft/onnxscript

v0.7.1

Choose a tag to compare

@justinchuby justinchuby released this 29 Jun 19:29
386769d

What's Changed

Breaking Changes

The op.op() interface in rewrite rules will now require inputs and attributes to be specified as args and kwargs, instead of a list and a dictionary.

  • Unify BuilderBase and GraphBuilder: shared call_op with feature flags by @gramalingam in #2910

Optimizer and rewriter

Torch Lib

  • Fix incorrect float output dtype in aten_arange_start_step default step by @titaiwangms with @Copilot in #2927
  • Set exclude_outside=1 on Resize for antialiased upsample by @ssam18 in #2916
  • Add torchvision.ops.deform_conv2d and opset19-specific tests by @f-fuchs in #2923
  • Fix aten_gru: add linear_before_reset=1 to match PyTorch GRU semantics by @justinchuby with @Copilot in #2853
  • Fix upsample half pixel mode for size one by @PrithviBadiga in #2918
  • Fix aten_stft ONNX spec violations by @justinchuby in #2943
  • [torchlib] Implement quantize_per_channel and dequantize_per_channel by @justinchuby with @Copilot in #2390

Other Changes

  • Bumped version to 0.7.1 by @tadani3 in #2897
  • Add more fusion test-cases (part 1) by @gramalingam in #2896
  • Add remaining high-priority rewriter extended tests by @gramalingam in #2899
  • Remove dead Opset function_defs registration by @gramalingam in #2901
  • chore(deps): bump onnxruntime from 1.24.2 to 1.25.1 in /requirements/ci by @dependabot[bot] in #2902
  • chore(deps): bump onnx-weekly from 1.22.0.dev20260330 to 1.22.0.dev20260421 in /requirements/ci by @dependabot[bot] in #2898
  • Fix nn.PixelUnshuffle wrong channel ordering (replace SpaceToDepth with Reshape→Transpose→Reshape) by @justinchuby with @Copilot in #2892
  • Fix two breaking CI failures: reshape-reshape rule test and logsumexp float16 tolerance by @justinchuby with @Copilot in #2907
  • Refactor: Introduce OpBuilderBase/TapeBuilder as unified op-building interface by @gramalingam in #2905
  • Bump lintrunner mypy dependency to 2.0.0 by @justinchuby with @Copilot in #2912
  • Expose build_function and build_graph in public API by @gramalingam in #2913
  • Fix fuse_pad_into_conv incorrectly fusing when Pad contains negative values by @justinchuby with @Copilot in #2841
  • Fix incorrect dtype default in aten_full causing ONNX shape-inference errors by @titaiwangms with @Copilot in #2926
  • Fix aten_masked_scatter for broadcasting masks by @gonultasbu in #2929
  • fix: invoke NameFixPass after graph-modifying operations in rewriter, version-converter, and optimizer by @gramalingam in #2922
  • chore(deps): bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in #2934

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

Choose a tag to compare

@tadani3 tadani3 released this 20 Apr 17:55
df97c94

What's Changed

Optimizer and Rewriter

  • [Rewriter] Extend list of supported commutative operations by @iksnagreb in #2741
  • fix(fuse_batchnorm): support convtranpose + bn fusion with group != 1 by @AyoubMDL in #2879
  • optimizer: Prevent constant folding of DynamicQuantizeLinear by @Copilot in #2865
  • Unify failure-handling in rewrite-rule by @gramalingam in #2866
  • Fix non-deterministic rewriter behavior in multi-output pattern matching by @Copilot in #2880
  • Fix BatchNorm fusion producing invalid ONNX when Conv nodes share weight initializers by @Copilot in #2883
  • Add fusion rule to remove Expand before broadcast-capable binary operators by @Copilot in #2862
  • Use logging instead of print in RewritePass by @tgolsson in #2835
  • fix: normalize cache key dtype to prevent initializer name collisions by @gramalingam in #2888

ONNX IR

Torch Lib

  • Add converter torch aten::histc by @xadupre in #2796
  • Trace single op.SplitToSequence by @titaiwangms in #2817
  • Fix bicubic antialias export: use cubic_coeff_a=-0.5 instead of -0.75 by @Copilot in #2849
  • [torchlib] Add missing dtype parameter to aten_mean_dim by @linusjuni in #2885
  • [torchlib] Fix torchvision::roi_align lowering to accept 7-arg schema by @FraGirla in #2830

Core ONNX Script

New Features

  • Add onnxscript.nn module with Module and Parameter classes by @justinchuby in #2819
  • Add nn.Sequential: callable ModuleList that chains forward calls by @justinchuby in #2823
  • Update nn.Sequential signature to match PyTorch (*modules varargs) by @Copilot in #2827

Other Changes

New Contributors

Full Changelog: v0.6.2...v0.7.0

v0.6.2

Choose a tag to compare

@titaiwangms titaiwangms released this 10 Feb 22:28
45ef06b

Note

This patch release includes important bug fixes to version converter.

What's Changed

Optimizer and rewriter

Torch Lib

  • Fix {lstm,gru}: slice hidden/cell state with sequence by @tgolsson in #2803

Other Changes

New Contributors

Full Changelog: v0.6.1...v0.6.2

v0.6.1

Choose a tag to compare

@justinchuby justinchuby released this 09 Feb 21:27
74a5f34

What's Changed

Note

This update includes a slight change in how PyTorch SDPA's Boolean attention mask is exported in opset<23

  • Fix attention mask to use float_lowest instead of -inf and add NaN-safe softmax handling by @Aniketsy in #2654

Other Changes

  • Fix compatibility with the latest onnx-ir version (0.1.16) by supporting onnx functions in version converter by @titaiwangms in #2791

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

Choose a tag to compare

@justinchuby justinchuby released this 29 Jan 18:46
dfa7544

What's Changed

This release introduces breaking changes to ONNXFunction. The .param_schemas and schema properties are removed, and are replaced by .op_signature which is more flexible and captures the complete signature of the ONNXFunction.

Additionally, onnxscript's AST converter for the scripting mode has been migrated to fully leverage onnx-ir.

Breaking Changes

Core ONNX Script

Optimizer and rewriter

  • Add test for unused initializer check with graph outputs by @Copilot in #2733
  • Add OutputFixPass and NameFixPass in optimize by @justinchuby in #2779

Torch Lib

Other Changes

New Contributors

Full Changelog: v0.5.7...v0.6.0

v0.5.7

Choose a tag to compare

@justinchuby justinchuby released this 16 Dec 20:56
b444529

What's Changed

Optimizer and rewriter

ONNX IR

Torch Lib

Documentation

Other Changes

  • Add GQA fusion test cases by @gramalingam in #2669
  • chore(deps): bump ruff from 0.14.2 to 0.14.3 in /requirements/lintrunner by @dependabot[bot] in #2676
  • chore(deps): bump editorconfig-checker from 3.4.0 to 3.4.1 in /requirements/lintrunner by @dependabot[bot] in #2677
  • chore(deps): bump onnx-weekly from 1.20.0.dev20251027 to 1.21.0.dev20251103 in /requirements/ci by @dependabot[bot] in #2678
  • Bump version by @gramalingam in #2702
  • Provide inplace replacement util by @gramalingam in #2708
  • chore(deps): bump ruff from 0.14.3 to 0.14.6 in /requirements/lintrunner by @dependabot[bot] in #2716
  • chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #2715
  • chore(deps): bump onnxruntime from 1.23.1 to 1.23.2 in /requirements/ci by @dependabot[bot] in #2652
  • chore(deps): bump github/codeql-action from 3 to 4 by @dependabot[bot] in #2626
  • chore(deps): bump ruff from 0.14.6 to 0.14.7 in /requirements/lintrunner by @dependabot[bot] in #2721
  • support opset23 by @titaiwangms in #2725
  • chore(deps): bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #2730
  • chore(deps): bump ruff from 0.14.7 to 0.14.9 in /requirements/lintrunner by @dependabot[bot] in #2731

New Contributors

Full Changelog: v0.5.6...v0.5.7

v0.5.6

Choose a tag to compare

@justinchuby justinchuby released this 31 Oct 05:40
3846705

What's Changed

Optimizer and rewriter

Full Changelog: v0.5.5...v0.5.6

v0.5.5

Choose a tag to compare

@justinchuby justinchuby released this 30 Oct 22:59
ee9a6e8

What's Changed

Breaking Changes

  • Create initializers not constant nodes in constant folding pass by @titaiwangms in #2650

Core ONNX Script

Optimizer and rewriter

Torch Lib

Other Changes

Full Changelog: v0.5.4...v0.5.5

v0.5.4

Choose a tag to compare

@justinchuby justinchuby released this 16 Oct 16:52
75b3d42

What's Changed

Optimizer and rewriter

Torch Lib

Other Changes

Full Changelog: v0.5.3...v0.5.4

v0.5.3

Choose a tag to compare

@justinchuby justinchuby released this 01 Oct 01:21
929a7f2

What's Changed

Optimizer and rewriter

Torch Lib

Other Changes

New Contributors

Full Changelog: v0.5.2...v0.5.3