From 8bfcf14b42cca7e77b575ce0b00e19e90756503b Mon Sep 17 00:00:00 2001
From: Yifan Li <109183385+yf711@users.noreply.github.com>
Date: Mon, 24 Jun 2024 09:20:31 -0700
Subject: [PATCH] [ORT 1.18.1 Release] update 1.18.1 patch release version
(#21143)
### Description
### Motivation and Context
---
VERSION_NUMBER | 2 +-
docs/python/README.rst | 5 +++++
js/common/lib/version.ts | 2 +-
js/common/package-lock.json | 4 ++--
js/common/package.json | 2 +-
js/node/lib/version.ts | 2 +-
js/node/package-lock.json | 6 +++---
js/node/package.json | 2 +-
js/react_native/lib/version.ts | 2 +-
js/react_native/package.json | 2 +-
js/react_native/yarn.lock | 2 +-
js/web/lib/version.ts | 2 +-
js/web/package-lock.json | 6 +++---
js/web/package.json | 2 +-
onnxruntime/__init__.py | 2 +-
onnxruntime/core/session/onnxruntime_c_api.cc | 2 +-
16 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/VERSION_NUMBER b/VERSION_NUMBER
index 84cc529467..ec6d649be6 100644
--- a/VERSION_NUMBER
+++ b/VERSION_NUMBER
@@ -1 +1 @@
-1.18.0
+1.18.1
diff --git a/docs/python/README.rst b/docs/python/README.rst
index bbc8571fe3..de54b120da 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.18.0"
+__version__ = "1.18.1"
__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 f0ed97ddab..069251c4de 100644
--- a/onnxruntime/core/session/onnxruntime_c_api.cc
+++ b/onnxruntime/core/session/onnxruntime_c_api.cc
@@ -2763,7 +2763,7 @@ static_assert(offsetof(OrtApi, SessionOptionsAppendExecutionProvider_OpenVINO_V2
static_assert(offsetof(OrtApi, AddExternalInitializersFromFilesInMemory) / sizeof(void*) == 279, "Size of version 18 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.18.0",
+static_assert(std::string_view(ORT_VERSION) == "1.18.1",
"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_18 above: