From e2194797a713f19a15ce2afbe0c6a78d5d8c467e Mon Sep 17 00:00:00 2001
From: Ye Wang <52801275+wangyems@users.noreply.github.com>
Date: Tue, 7 Sep 2021 14:30:55 -0700
Subject: [PATCH] bumping up to version 1.9 (#8982)
* bump up version
* makes the windowAI column align with ORT version
* update the hardcoded version string
* fix a typo
---
VERSION_NUMBER | 2 +-
docs/Versioning.md | 1 +
docs/python/README.rst | 5 +++++
js/common/package-lock.json | 4 ++--
js/common/package.json | 2 +-
js/node/package-lock.json | 2 +-
js/node/package.json | 4 ++--
js/react_native/package.json | 2 +-
js/web/package-lock.json | 4 ++--
js/web/package.json | 4 ++--
onnxruntime/__init__.py | 2 +-
onnxruntime/core/session/onnxruntime_c_api.cc | 6 ++++--
package/rpm/onnxruntime.spec | 2 +-
13 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/VERSION_NUMBER b/VERSION_NUMBER
index 53adb84c8220e..f8e233b27332b 100644
--- a/VERSION_NUMBER
+++ b/VERSION_NUMBER
@@ -1 +1 @@
-1.8.2
+1.9.0
diff --git a/docs/Versioning.md b/docs/Versioning.md
index a21da0ebf7dee..9c1b22642b59e 100644
--- a/docs/Versioning.md
+++ b/docs/Versioning.md
@@ -26,6 +26,7 @@ For more details on ONNX Release versions, see [this page](https://github.com/on
| ONNX Runtime release version | ONNX release version | ONNX opset version | ONNX ML opset version | Supported ONNX IR version | [Windows ML Availability](https://docs.microsoft.com/en-us/windows/ai/windows-ml/release-notes/)|
|------------------------------|--------------------|--------------------|----------------------|------------------|------------------|
+| 1.9.0 | **1.9** down to 1.2 | 14 | 2 | 7 | Windows AI 1.9+ |
| 1.8.2 | **1.9** down to 1.2 | 14 | 2 | 7 | Windows AI 1.8+ |
| 1.8.1 | **1.9** down to 1.2 | 14 | 2 | 7 | Windows AI 1.8+ |
| 1.8.0 | **1.9** down to 1.2 | 14 | 2 | 7 | Windows AI 1.8+ |
diff --git a/docs/python/README.rst b/docs/python/README.rst
index 3964b386c6105..4975ab9ebfd02 100644
--- a/docs/python/README.rst
+++ b/docs/python/README.rst
@@ -8,6 +8,11 @@ For more information on ONNX Runtime, please see `aka.ms/onnxruntime `_
or the `Github project `_.
"""
-__version__ = "1.8.2"
+__version__ = "1.9.0"
__author__ = "Microsoft"
# we need to do device version validation (for example to check Cuda version for an onnxruntime-training package).
diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc
index 5bd48a7ccc573..32122bccdb7dc 100644
--- a/onnxruntime/core/session/onnxruntime_c_api.cc
+++ b/onnxruntime/core/session/onnxruntime_c_api.cc
@@ -2340,7 +2340,6 @@ static constexpr OrtApi ort_api_1_to_9 = {
&OrtApis::CreateSessionFromArrayWithPrepackedWeightsContainer,
// End of Version 8 - DO NOT MODIFY ABOVE (see above text for more information)
- // Version 9 - In development, feel free to add/remove/rearrange here
&OrtApis::SessionOptionsAppendExecutionProvider_TensorRT_V2,
&OrtApis::CreateTensorRTProviderOptions,
&OrtApis::UpdateTensorRTProviderOptions,
@@ -2363,6 +2362,9 @@ static constexpr OrtApi ort_api_1_to_9 = {
&OrtApis::GetSparseTensorValues,
&OrtApis::GetSparseTensorIndicesTypeShape,
&OrtApis::GetSparseTensorIndices,
+ // End of Version 9 - DO NOT MODIFY ABOVE (see above text for more information)
+
+ // Version 10 - In development, feel free to add/remove/rearrange here
};
// Asserts to do a some checks to ensure older Versions of the OrtApi never change (will detect an addition or deletion but not if they cancel out each other)
@@ -2377,7 +2379,7 @@ static_assert(offsetof(OrtApi, GetCurrentGpuDeviceId) / sizeof(void*) == 161, "S
static_assert(offsetof(OrtApi, CreateSessionFromArrayWithPrepackedWeightsContainer) / sizeof(void*) == 169, "Size of version 8 API cannot change");
// So that nobody forgets to finish an API version, this check will serve as a reminder:
-static_assert(std::string_view(ORT_VERSION) == "1.8.2", "ORT_Version change detected, please follow below steps to ensure OrtApi is updated properly");
+static_assert(std::string_view(ORT_VERSION) == "1.9.0", "ORT_Version change detected, please follow below steps to ensure OrtApi is updated properly");
// 1. Update the hardcoded version string in above static_assert to silence it
// 2. If there were any APIs added to ort_api_1_to_9 above:
// a. Add the 'End of version #' markers (pattern above should be obvious)
diff --git a/package/rpm/onnxruntime.spec b/package/rpm/onnxruntime.spec
index 50127a1de7dd9..ebe3dd3835add 100644
--- a/package/rpm/onnxruntime.spec
+++ b/package/rpm/onnxruntime.spec
@@ -1,5 +1,5 @@
Name: onnxruntime
-Version: 1.8.2
+Version: 1.9.0
Release: 1%{?dist}
Summary: onnxruntime