ONNX v1.8 is now available with exciting enhanced features! You may learn more about the project, who is involved and what tools are available at the onnx.ai site. We would like to thank every community member for contributing to the project!
Key Updates
- Windows conda package is now available in v1.8.0 Release (last supported version was v1.1.1)
- Training
- Shape Inference and Checker
- Version Converter
- More operators supported #2664
- General Features
Opset version 13
- Added bfloat16 support #2770
- All operators which use numeric types
- Supported per-axis scaling for quantizing and dequantizing of tensors #2772
- Updated softmax family ops behavior to align with other frameworks #2879
- Extended ControlFlow ops to allow Sequence type for inputs and outputs #2899
- Axes attribute changed to inputs #2955
API
onnx.shape_inference
now accepts model path and supports >2GB models for shape inference. #3012
Infrastructure
- CI improvements for reliability
- Moved to AzurePipelines to speed up runs
- pybind11 updated to 2.6.0 to prevent segmentation fault on Windows
Bug fixes
- #2888 Return empty string from ToDataTypeString() when tensor_data_type not found
- #2946 Resolve segfault on Input without tensor data in ConstantofShape
- #2950 Add nullptr check to type inference mtds to avoid segfaults
- #2983 Fix type inference issue (scalar initializers and Resize)
- #3000 Fix ConvTranspose: enhance attribute check
- #3005 Fix shape inference of scalar ConstantOfShape
- #3014 Fix shape inference
- #3023 IR gap issue has been fixed in checker and shape inference
Installation
You can simply pip upgrade using the pip install onnx --upgrade
or build from source following the instructions on Github.
Notes
onnx.optimizer
is moving to another repo: https://github.com/onnx/optimizer. It will be removed from onnx/onnx in ONNX 1.9.onnx.version_converter
has IR gap issue - cannot use input from initializer: #3007onnx.shape_inference
updates both output and value_info. It will only update the original output in future update: #3069
Contributors
Thanks to these individuals for their contributions in this release:
jcwchen, askhade, wschin, vinitra, prasanthpul, gramalingam, daquexian, rajeevnalawadi, sveta-levitan, ashbhandare, chinhuang007, KsenijaS, shinh, BowenBao, shubhambhokare1, pranav-prakash, prabhat00155, pluradj, matteosal, jackwish, Yukigaru, H1Gdev, 462630221, natke, kevinch-nv, RandySheriffH, souptc, fdwr, HectorSVC, jspisak, codemzs, yuslepukhin, linkerzhang