ONNX Runtime v1.2.0 adds WinML APIs, TensorRT 7, new C API surfaces, quantized ops, and Android AAR builds.
$ git clone --branch v1.2.0 https://github.com/microsoft/onnxruntime.git # already have the repo? check out this version: $ git checkout v1.2.0
OrtModelMetadata* metadata; ort_api->SessionGetModelMetadata(session, &metadata); char* producer; ort_api->ModelMetadataGetProducerName(metadata, allocator, &producer); char* custom_val; ort_api->ModelMetadataLookupCustomMetadataMap(metadata, allocator, "my_key", &custom_val); ort_api->ReleaseModelMetadata(metadata);
- ›Adds C API functions
GetDenotationFromTypeInfo,CastTypeInfoToMapTypeInfo,CastTypeInfoToSequenceTypeInfo,GetMapKeyType,GetMapValueType,GetSequenceElementType,ReleaseMapTypeInfo,ReleaseSequenceTypeInfo,SessionEndProfiling,SessionGetModelMetadata,ModelMetadataGetProducerName,ModelMetadataGetGraphName,ModelMetadataGetDomain,ModelMetadataGetDescription,ModelMetadataLookupCustomMetadataMap,ModelMetadataGetVersion, andReleaseModelMetadatafor richer session introspection. - ›Adds new Contrib ops
QLinearAdd,QLinearMul,QLinearReduceMean,MulInteger, andQLinearAveragePoolfor quantized inference workflows. - ›Adds Int8 type support for the Where op.
- ›Default value of
graph_optimization_levelinSessionOptionschanged toORT_ENABLE_ALL(99), and defaultmax_num_graph_transformation_stepsincreased to 10. - ›Introduces a model opset number and IR version check — ONNX Runtime will now reject models with ONNX opset versions higher than those supported in the built version.
+9 moreshow less
- ›[Preview] Windows Machine Learning (WinML) WinRT APIs now available in Windows builds of ONNX Runtime, with DirectML execution provider for GPU acceleration; compatible with Windows 8.1 (CPU) and Windows 10 1709+ (GPU), distributed as
windows.ai.machinelearning.dllvia Nuget. - ›TensorRT Execution Provider upgraded to TRT 7.
- ›CUDA updated to 10.1; Linux builds now require CUDA Runtime 10.1.243,
cublas10-10.2.1.243, and CUDNN 7.6.5.32 (cublas 10.1.x is not supported); adds dependency oncurandlib. - ›Adds capability to generate an ONNX Runtime Android Archive (AAR) file from source, importable directly into Android Studio.
- ›Java API now available on Android; Gradle is now required to build the Java API.
- ›Nuget package restructured to introduce a separate managed assembly
Microsoft.ML.OnnxRuntime.Managedshared between CPU and GPU packages. - ›Build system now supports fetching dependencies from vcpkg (C++ package manager for Windows, Linux, and macOS).
- ›Adds experimental featurizer operators as an expansion of Contrib operators (not part of the official build).
- ›
OrtEnvcan now be created and destroyed multiple times within the same process.
- !The default
graph_optimization_levelinSessionOptionsis changed toORT_ENABLE_ALL(99); existing code relying on the previous default will now apply full graph optimizations automatically. - !ONNX Runtime will now reject models whose opset version is higher than the supported opset for the installed version — models previously loaded under the old forward-compatibility behavior may now fail to load.
- !Linux CUDA builds now require exactly CUDA Runtime 10.1.243,
cublas10-10.2.1.243, and CUDNN 7.6.5.32; cublas 10.1.x versions will not work.