Onnxruntime

Latest version: v1.19.0

Safety actively analyzes 675368 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

1.5.3

This is a minor patch release on [1.5.2](https://github.com/Microsoft/onnxruntime/releases/tag/v1.5.2) with the following changes:
* Fix shared provider unload crash 5553
* Minor minimal build header fix

1.5.2

Not secure
This is a minor patch release on [1.5.1](https://github.com/Microsoft/onnxruntime/releases/tag/v1.5.1) with the following changes:
* Remove dependency on cudnn64_7.dll for GPU C nuget: https://github.com/microsoft/onnxruntime/pull/5386
* Add config keys header file in the packages for Linux and Mac: https://github.com/microsoft/onnxruntime/pull/5388
* Add flatbuffers verifier for ORT format buffer: https://github.com/microsoft/onnxruntime/pull/5378
* Use official flatbuffers v1.12: https://github.com/microsoft/onnxruntime/pull/5392
* Mitigate pybind11 build break using Xcode 12 on macOS: https://github.com/microsoft/onnxruntime/pull/5381
* Support trilinear sampling in the Resize operator: https://github.com/microsoft/onnxruntime/pull/5300
* Update TensorRT parser to fix accuracy issue in some opset11 models: https://github.com/microsoft/onnxruntime/pull/5442


orttraining_rc3.1
Fixes issue discovered during validation.

Changes:
- https://github.com/microsoft/onnxruntime/pull/5350

orttraining_rc3
See: https://github.com/microsoft/onnxruntime/releases/tag/v1.5.1

1.5.1

Not secure
Key Updates
General
* Reduced Operator Kernel build allows ORT binaries to be built with only required operators in the model(s) - [learn more](https://github.com/microsoft/onnxruntime/blob/master/docs/Reduced_Operator_Kernel_build.md)
* **[Preview]** ORT for Mobile Platforms - minimizes build size for mobile and embedded devices - [learn more](https://github.com/microsoft/onnxruntime/blob/master/docs/ONNX_Runtime_for_Mobile_Platforms.md)
* Transformer model inferencing performance optimizations
* Perf improvement for DistilBERT
* Benchmark tool supports more pretrained models
* Improvements in quantization tool
* Support quantization-aware training models
* Make calibration tool to support general preprocessing and calibrate on input
* Simplify the quantization APIs
* Support of model larger than 2G
* New operators for static quantization: QLinearMul, QLinearAdd, QlinearSigmoid and QLinearLeakyRelu
* Prepack constant matrix B for float GEMM (MatMul, Attention)
* Limited Python 3.8 support added in addition to 3.5-3.7 for official Python packages. Not yet supported for Windows GPU and Linux ARM builds.
* Telemetry enabled in Java and NodeJS packages for Windows builds. Note: data is not directly sent to Microsoft or ORT teams by ONNX Runtime; enabling telemetry means trace events are collected by the Windows operating system and may be sent to the cloud based on the user's privacy settings - [learn more](https://github.com/microsoft/onnxruntime/blob/master/docs/Privacy.md).

API
* Python API support for RegisterCustomOpsLibrary
* IO Binding API for C/C++/C language bindings. This allows use of pre-allocated buffers on targeted devices and also target device for unknown output shapes.
* Sharing of allocators between multiple sessions. This allows much better utilization of memory by not creating a separate arena for each session in the same process. See [this](https://github.com/microsoft/onnxruntime/blob/rel-1.5.1/docs/C_API.md) for details.

Windows ML
* NuGet package now supports UWP applications targeting Windows Store deployment (CPU only)
* NuGet package now supports .NET and .NET framework applications
* RUST Developers can now deploy Windows ML – sample and documentation available [here](https://github.com/microsoft/Windows-Machine-Learning/tree/master/Samples/RustSqueezenet)
* New APIs to for additional performance control:
* IntraopNumThreads: Provides an ability to change the number of threads used in the threadpool for Intra Operator Execution for CPU operators through LearningModelSessionOptions.
* SetNamedDimensionOverrides: Provides the ability to override named input dimensions to concrete values through LearningModelSessionOptions in order to achieve better runtime performance.
* Support for additional ONNX format image type denotations – Gray8, normalized [0..1] and normalized [-1..1]
* Reduced Windows ML package size by separating debug symbols into separate distribution package.

Execution Providers
* CUDA updates
* CUDA 10.2 / cuDNN 8.0 in official package
* CUDA 11 support added and available to build from source
* CUDA conv kernel support asymmetrical padding to fully support models such as YoloV3 for improved GPU perf
* TensorRT EP updates
* Support for TensorRT 7.1
* Added TensorRT engine caching feature, turned on by setting env variable ORT_TENSORRT_ENGINE_CACHE_ENABLE=1
* TensorRT builds are now built with the Execution Provider as a separate dll. If enabled in the build, the provider will be available as a shared library. This was previously also enabled for the DNNL EP (ORT 1.3). Other Execution Providers will be added in the future.
* OpenVINO EP updates
* Support for OpenVINO 2020.4
* Added runtime options for VPU hardware to select specific hardware device and enable fast compilation of models.
* Enable C binding support for OpenVINO EP
* DirectML EP updates
* API available for Python ([build from source](https://github.com/microsoft/onnxruntime/blob/v1.5.1/BUILD.md#directml)) and C [Microsoft.ML.OnnxRuntime.DirectML](https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.directml)
* 7 new operators for ONNX 1.7 (opset 12): Celu, GreaterOrEqual, LessOrEqual, ArgMin/Max with select_last_index, GatherND with batch_dim, RoiAlign
* New data integer types were added to existing operators: Clip int, Max int, Min int, MaxPool int8, ReduceMin int8, ReduceMax int8, Pow int exponent
* Higher dimension support 1D to 8D added to these operators: ElementWise*, Activation*, Reduce*, ArgMin/ArgMax, Gather*, Scatter*, OneHot
* 64-bit support for indices on GPU's that support it: Gather, Scatter, OneHot, ArgMax/ArgMin, Cast.
* Android NNAPI EP updates:
* Support for dynamic input shape
* Int32/float32/uint8 data type
* 50% more supported operators (36 total)
* Support for Uint8 static quantization
* Smaller binary size
* Lower memory consumption
* CPU fallback for Android level 26-
* MiGraphX EP updates
* Added ONNX operators: GatherElements, NonZero, Equal, and Where
* Support for Boolean data type
* Improve support for existing operators:
* Asymmetric padding of AveragePool
* Multi-dimensional support for Convolution, Pooling, LRN, and Batchnormalization
* Ceil mode support for AveragePool and MaxPool
* More general approach to check whether constant folding is possible
* Improved graph partitioning logic

Training (RC3 release)
* New and improved API to simplify integration with PyTorch trainer code - [see instructions here](https://github.com/microsoft/onnxruntime-training-examples/tree/master/getting-started)
* Updated CUDA 11 / cuDNN 8.0 support to accelerate in NVIDIA A100

Dependency updates
MacOS binaries now rely on openmp to be installed. See [this](https://github.com/microsoft/onnxruntime/issues/5344#issuecomment-701921165) for reference.

Contributions
Contributors to ONNX Runtime include members across teams at Microsoft, along with our community members:

[gwang-msft](https://github.com/gwang-msft), [snnn](https://github.com/snnn), [skottmckay](https://github.com/skottmckay), [hariharans29](https://github.com/hariharans29), [thiagocrepaldi](https://github.com/thiagocrepaldi), [tianleiwu](https://github.com/tianleiwu), [wangyems](https://github.com/wangyems), [RandySheriffH](https://github.com/RandySheriffH), [yufenglee](https://github.com/yufenglee), [SherlockNoMad](https://github.com/SherlockNoMad), [smk2007](https://github.com/smk2007), [jywu-msft](https://github.com/jywu-msft), [liqunfu](https://github.com/liqunfu), [edgchen1](https://github.com/edgchen1), [yuslepukhin](https://github.com/yuslepukhin), [tiagoshibata](https://github.com/tiagoshibata), [fdwr](https://github.com/fdwr), [ashbhandare](https://github.com/ashbhandare), [iK1D](https://github.com/iK1D), [wschin](https://github.com/wschin), [BowenBao](https://github.com/BowenBao), [zhanghuanrong](https://github.com/zhanghuanrong), [RyanUnderhill](https://github.com/RyanUnderhill), [ryanlai2](https://github.com/ryanlai2), [askhade](https://github.com/askhade), [pranavsharma](https://github.com/pranavsharma), [martinb35](https://github.com/martinb35), [suffiank](https://github.com/suffiank), [ytaous](https://github.com/ytaous), [KeDengMS](https://github.com/KeDengMS), [rayankrish](https://github.com/rayankrish), [natke](https://github.com/natke), [YUNQIUGUO](https://github.com/YUNQIUGUO), [range4life](https://github.com/range4life), [smkarlap](https://github.com/smkarlap), [zhangxiang1993](https://github.com/zhangxiang1993), [xzhu1900](https://github.com/xzhu1900), [codemzs](https://github.com/codemzs), [weixingzhang](https://github.com/weixingzhang), [stevenlix](https://github.com/stevenlix), [tracysh](https://github.com/tracysh), [mosdav](https://github.com/mosdav), [jingyanwangms](https://github.com/jingyanwangms), [tlh20](https://github.com/tlh20), [souptc](https://github.com/souptc), [orilevari](https://github.com/orilevari), [kit1980](https://github.com/kit1980), [yangchen-MS](https://github.com/yangchen-MS), [faxu](https://github.com/faxu), [fs-eire](https://github.com/fs-eire), [wenbingl](https://github.com/wenbingl), [chilo-ms](https://github.com/chilo-ms), [xkszltl](https://github.com/xkszltl), [Andrews548](https://github.com/Andrews548), [yuzawa-san](https://github.com/yuzawa-san), [MaximKalininMS](https://github.com/MaximKalininMS), [jgbradley1](https://github.com/jgbradley1), [nickfeeney](https://github.com/nickfeeney), [zhijxu-MS](https://github.com/zhijxu-MS), [Tixxx](https://github.com/Tixxx), [suryasidd](https://github.com/suryasidd), [Craigacp](https://github.com/Craigacp), [duli2012](https://github.com/duli2012), [jeffbloo](https://github.com/jeffbloo)

orttraining_rc2

1.4.0

Not secure
Key Updates
* Performance optimizations for Transformer models
* GPT2 - Enable optimizations for Attention with Past State and Attention Mask
* BERT - Improve EmbedLayerNormalization fusion coverage
* Quantization updates
* Added new quantization operators: QLinearAdd, QAttention
* Improved quantization performance for transformer based models on CPU
* More graph fusion
* Further optimization in MLAS kernel
* Introduced pre-packing for constant Matrix B of DynamicQuantizeMatMul and Qattention
* New [Python IOBinding APIs](https://github.com/microsoft/onnxruntime/blob/master/docs/python/api_summary.rst#iobinding) (bind_cpu_input, bind_output, copy_outputs_to_cpu) allow easier benchmarking
* Users no longer need to allocate inputs and outputs on non-CPU devices using third-party allocators.
* Users no longer need to copy inputs to non-CPU devices; ORT handles the copy.
* Users can now use copy_outputs_to_cpu to copy outputs from non-CPU devices to CPU for verification.
* CUDA support for Einsum (opset12)
* ONNX Runtime Training updates
* Opset 12 support
* New [sample](https://github.com/microsoft/onnxruntime-training-examples) for training experiment using Huggingface GPT-2.
* Upgraded docker image built from the latest PyTorch release
* Telemetry is now enabled by default for Python packages and Github release zip files (C API); [see more details](https://github.com/microsoft/onnxruntime/blob/master/docs/Privacy.md#official-builds) on what/how telemetry is collected in ORT
* **[Coming soon]** Availability of Python package for ONNX Runtime 1.4 for Jetpack 4.4

Execution Providers
New Execution Providers available for preview:
* **[Preview]** [AMD MIGraphX](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/MIGraphX-ExecutionProvider.md)
* **[Preview]** [ARM NN](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/ArmNN-ExecutionProvider.md)

Contributions
Contributors to ONNX Runtime include members across teams at Microsoft, along with our community members:

[snnn](https://github.com/snnn), [tianleiwu](https://github.com/tianleiwu), [edgchen1](https://github.com/edgchen1), [hariharans29](https://github.com/hariharans29), [skottmckay](https://github.com/skottmckay), [tracysh](https://github.com/tracysh), [yufenglee](https://github.com/yufenglee), [fs-eire](https://github.com/fs-eire), [codemzs](https://github.com/codemzs), [tiagoshibata](https://github.com/tiagoshibata), [yuslepukhin](https://github.com/yuslepukhin), [gwang-msft](https://github.com/gwang-msft), [wschin](https://github.com/wschin), [smk2007](https://github.com/smk2007), [prabhat00155](https://github.com/prabhat00155), [liuziyue](https://github.com/liuziyue), [liqunfu](https://github.com/liqunfu), [ytaous](https://github.com/ytaous), [iK1D](https://github.com/iK1D), [BowenBao](https://github.com/BowenBao), [askhade](https://github.com/askhade), [pranavsharma](https://github.com/pranavsharma), [faxu](https://github.com/faxu), [jywu-msft](https://github.com/jywu-msft), [ryanlai2](https://github.com/ryanlai2), [xzhu1900](https://github.com/xzhu1900), [KeDengMS](https://github.com/KeDengMS), [tlh20](https://github.com/tlh20), [smkarlap](https://github.com/smkarlap), [weixingzhang](https://github.com/weixingzhang), [jeffbloo](https://github.com/jeffbloo), [RyanUnderhill](https://github.com/RyanUnderhill), [mrry](https://github.com/mrry), [jgbradley1](https://github.com/jgbradley1), [stevenlix](https://github.com/stevenlix), [zhanghuanrong](https://github.com/zhanghuanrong), [suffiank](https://github.com/suffiank), [Andrews548](https://github.com/Andrews548), [pengwa](https://github.com/pengwa), [SherlockNoMad](https://github.com/SherlockNoMad), [orilevari](https://github.com/orilevari), [duli2012](https://github.com/duli2012), [yangchen-MS](https://github.com/yangchen-MS), [yan12125](https://github.com/yan12125), [jornt-xilinx](https://github.com/jornt-xilinx), [ashbhandare](https://github.com/ashbhandare), [neginraoof](https://github.com/neginraoof), [Tixxx](https://github.com/Tixxx), [thiagocrepaldi](https://github.com/thiagocrepaldi), [Craigacp](https://github.com/Craigacp), [mayeut](https://github.com/mayeut), [chilo-ms](https://github.com/chilo-ms), [prasanthpul](https://github.com/prasanthpul), [martinb35](https://github.com/martinb35), [manashgoswami](https://github.com/manashgoswami), [zhangxiang1993](https://github.com/zhangxiang1993), [suryasidd](https://github.com/suryasidd), [wangyems](https://github.com/wangyems), [kit1980](https://github.com/kit1980), [RandySheriffH](https://github.com/RandySheriffH), [fdwr](https://github.com/fdwr)

1.3.1

This update includes changes to support the published packages for the Java and nodejs APIs for the 1.3.0 release.
* Maven: [Java API CPU](https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime)
* Maven: [Java API GPU](https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime_gpu)
* [NPM: ONNX Runtime Node.js API](https://www.npmjs.com/package/onnxruntime)

For all other APIs/builds, the [1.3.0](https://github.com/microsoft/onnxruntime/releases/tag/v1.3.0) release packages are suggested. 1.3.1 does address the 1.3.0 issue of [Crash when setting IntraOpNumThreads using the C/C++/C# API](https://github.com/microsoft/onnxruntime/issues/4070), so if this fix is needed it can be built from source using this release branch (with official release support).

1.3.0

Not secure
Key Updates
General
* ONNX 1.7 support
* Opset 12
* Function expansion support that enables several new ONNX 1.7 ops such as NegativeLogLikelihoodLoss, GreaterOrEqual, LessOrEqual, Celu to run without a kernel implementation.
* **[Preview]** ONNX Runtime Training
* ONNX Runtime Training is a new capability released in preview to accelerate training transformer models. See the sample [here](https://github.com/microsoft/onnxruntime-training-examples/) to use this feature in your training experiments.
* Improved threadpool support for better resource utilization
* Improved threadpool abstractions that switch between openmp and Eigen threadpools based on build settings. All operators have been updated to use these new abstractions.
* Improved Eigen based threadpool now allow ops to provide cost (among other things like thread affinity) for operations
* Simpler configuration of thread count. If built with OpenMP, use the OpenMP env variables; else use the ORT APIs to configure the number of threads.
* Support for sessions to share global threadpool. See [this](https://github.com/microsoft/onnxruntime/blob/rel-1.3.0/docs/C_API.md) for more information.
* Performance improvements
* ~10% average measured latency improvements amongst key representative models (including ONNX model zoo models, MLPerf, and production models shipped in Microsoft products)
* Further latency improvements for Transformer models on CPU and GPU - [benchmark script](https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/python/tools/transformers/benchmark_gpt2.py)
* Improved batch inferencing latency for scikit-learn models for large batch sizes
* Significant improvements in the implementations of the following ONNX operators: TreeEnsembleRegressor, TreeEnsembleClassifier, LinearRegressor, LinearClassifier, SVMRegressor, SVMClassifier, TopK
* C API optimizations - [PR3171](https://github.com/microsoft/onnxruntime/pull/3171)
* Telemetry enabled for Windows ([more details](https://github.com/microsoft/onnxruntime#DataTelemetry) on telemetry collection)
* Improved error reporting when a kernel cannot be found due to missing type implementation
* Minor fixes based on static code analysis

Dependency updates
Please note that this version of onnxruntime depends on **[Visual C++ 2019 runtime](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)**. Previous versions depended on Visual C++ 2017. Please also refer https://github.com/microsoft/onnxruntime/tree/rel-1.3.0#system-requirements for the full set of system requirements.

APIs and Packages
* **[General Availability]** Windows Machine Learning APIs - package published on Nuget - [Microsoft.AI.MachineLearning](https://www.nuget.org/packages/Microsoft.AI.MachineLearning)
* Performance improvements
* Opset updates
* **[General Availability]** ONNX Runtime with DirectML package published on Nuget -[Microsoft.ML.OnnxRuntime.DirectML](https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML/)
* **[General Availability]** [Java API](https://github.com/microsoft/onnxruntime/tree/master/java) - Maven package coming soon.
* **[Preview]** [Javascript (node.js) API](https://github.com/microsoft/onnxruntime/tree/master/nodejs) now available to build from the master branch.
* ARM64 Linux CPU Python package [now available on Pypi](https://pypi.org/project/onnxruntime). Note: this requires [building ONNX for ARM64](https://github.com/onnx/onnx#build-onnx-on-arm-64).
* Nightly dev builds from master ([Nuget feed](https://aiinfra.visualstudio.com/PublicPackages/_packaging?_a=feed&feed=ORT-Nightly), TestPypi-[CPU]( https://test.pypi.org/project/ort-nightly), [GPU]( https://test.pypi.org/project/ort-gpu-nightly))
* API Updates
* I/O binding support for Python API - This reduces execution time significantly by allowing users to setup inputs/outputs on the GPU prior to model execution.
* API to specify free dimensions based on both denotations and symbolic names.

Execution Providers
* [OpenVINO v2.0 EP](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/OpenVINO-ExecutionProvider.md)
* [DirectML EP](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/DirectML-ExecutionProvider.md) updates
* Updated graph interface to abstract GPU-dependent graph optimization
* ONNX opset 10 and 11 support
* Initial support of 8bit and quantized operators
* Performance optimizations
* **[Preview]** [Rockchip NPU EP](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/RKNPU-ExecutionProvider.md)
* **[Preview]** [Xilinx FPGA Vitis-AI EP](https://github.com/microsoft/onnxruntime/blob/master/docs/execution_providers/Vitis-AI-ExecutionProvider.md)
* Capability to build execution providers as DLLs - supported for DNNL EP, work in progress for other EPs.
* If enabled in the build, the provider will be available as a shared library. Previously, EPs had to be statically linked with the core code.
* No runtime cost to include the EP if it isn't loaded; can now dynamically decide when to load it based on the model

Contributions
We'd like to recognize our community members across various teams at Microsoft and other companies for all their valuable contributions. Our community contributors in this release include: [Adam Pocock](https://github.com/Craigacp), [pranavm-nvidia](https://github.com/pranavm-nvidia), [Andrew Kane](https://github.com/ankane), [Takeshi Watanabe](https://github.com/take-cheeze), [Jianhao Zhang](https://github.com/daquexian), [Colin Jermain](https://github.com/cjermain), [Andrews548](https://github.com/Andrews548), [Jan Scholz](https://github.com/radikalliberal), [Pranav Prakash](https://github.com/pranav-prakash), [suryasidd](https://github.com/suryasidd), and [S. Manohar Karlapalem](https://github.com/smkarlap).

The ONNX Runtime Training code was originally developed internally at Microsoft, before being ported to Github. We’d like to recognize the original contributors: Aishwarya Bhandare, Ashwin Kumar, Cheng Tang, Du Li, Edward Chen, Ethan Tao, Fanny Nina Paravecino, Ganesan Ramalingam, Harshitha Parnandi Venkata, Jesse Benson, Jorgen Thelin, Ke Deng, Liqun Fu, Li-Wen Chang, Peng Wang, Sergii Dymchenko, Sherlock Huang, Stuart Schaefer, Tao Qin, Thiago Crepaldi, Tianju Xu, Weichun Wang, Wei Zuo, Wei-Sheng Chin, Weixing Zhang, Xiaowan Dong, Xueyun Zhu, Zeeshan Siddiqui, and Zixuan Jiang.


Known Issues
1. The source doesn't compile on Ubuntu 14.04. See 4048
2. [Crash when setting IntraOpNumThreads using the C/C++/C API](https://github.com/microsoft/onnxruntime/issues/4070). [Fix is available in the master branch](https://github.com/microsoft/onnxruntime/commit/6c1b2f33b74ad48c3cb08d4ba1f38e1897659c8e).
**Workaround**: Setting IntraOpNumThreads is inconsequential when using ORT that is built with openmp enabled. Hence it's not required and can be safely commented out. Use the openmp env variables to set the threading params for openmp enabled builds (which is the recommended way).

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.