Skip to content

Commit bd9d8fb

Browse files
YUNQIUGUOrachguo
and
rachguo
authored
[ORT 1.17.0 release] Bump up version to 1.18.0 (microsoft#19170)
### Description <!-- Describe your changes. --> Bump up version to 1.18.0 since the release branch has been cut. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Co-authored-by: rachguo <[email protected]>
1 parent 63dd605 commit bd9d8fb

File tree

18 files changed

+31
-26
lines changed

18 files changed

+31
-26
lines changed

VERSION_NUMBER

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.17.0
1+
1.18.0

csharp/src/Microsoft.ML.OnnxRuntime/Training/NativeTrainingMethods.shared.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ static NativeTrainingMethods()
6565
DOrtGetApi OrtGetApi = (DOrtGetApi)Marshal.GetDelegateForFunctionPointer(NativeMethods.OrtGetApiBase().GetApi, typeof(DOrtGetApi));
6666

6767
// TODO: Make this save the pointer, and not copy the whole structure across
68-
api_ = (OrtApi)OrtGetApi(17 /*ORT_API_VERSION*/);
68+
api_ = (OrtApi)OrtGetApi(18 /*ORT_API_VERSION*/);
6969

7070
OrtGetTrainingApi = (DOrtGetTrainingApi)Marshal.GetDelegateForFunctionPointer(api_.GetTrainingApi, typeof(DOrtGetTrainingApi));
71-
trainingApiPtr = OrtGetTrainingApi(17 /*ORT_API_VERSION*/);
71+
trainingApiPtr = OrtGetTrainingApi(18 /*ORT_API_VERSION*/);
7272
if (trainingApiPtr != IntPtr.Zero)
7373
{
7474
trainingApi_ = (OrtTrainingApi)Marshal.PtrToStructure(trainingApiPtr, typeof(OrtTrainingApi));

docs/python/README.rst

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://ak
88
Changes
99
-------
1010

11+
1.18.0
12+
^^^^^^
13+
14+
Release Notes : https://github.com/Microsoft/onnxruntime/releases/tag/v1.18.0
15+
1116
1.17.0
1217
^^^^^^
1318

include/onnxruntime/core/session/onnxruntime_c_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* This value is used by some API functions to behave as this version of the header expects.
4040
*/
41-
#define ORT_API_VERSION 17
41+
#define ORT_API_VERSION 18
4242

4343
#ifdef __cplusplus
4444
extern "C" {

js/common/lib/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// This file is generated by /js/scripts/update-version.ts
55
// Do not modify file content manually.
66

7-
export const version = '1.17.0';
7+
export const version = '1.18.0';

js/common/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"license": "MIT",
33
"type": "module",
44
"name": "onnxruntime-common",
5-
"version": "1.17.0",
5+
"version": "1.18.0",
66
"repository": {
77
"url": "https://github.com/Microsoft/onnxruntime.git",
88
"type": "git"

js/node/lib/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// This file is generated by /js/scripts/update-version.ts
55
// Do not modify file content manually.
66

7-
export const version = '1.17.0';
7+
export const version = '1.18.0';

js/node/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
3
1414
]
1515
},
16-
"version": "1.17.0",
16+
"version": "1.18.0",
1717
"dependencies": {
1818
"onnxruntime-common": "file:../common"
1919
},

js/react_native/lib/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// This file is generated by /js/scripts/update-version.ts
55
// Do not modify file content manually.
66

7-
export const version = '1.17.0';
7+
export const version = '1.18.0';

js/react_native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"registry": "https://registry.npmjs.org/"
3737
},
3838
"source": "lib/index",
39-
"version": "1.17.0",
39+
"version": "1.18.0",
4040
"main": "dist/commonjs/index",
4141
"homepage": "https://github.com/microsoft/onnxruntime/blob/main/js/react_native/README.md",
4242
"files": [

js/react_native/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5254,7 +5254,7 @@ onetime@^5.1.0, onetime@^5.1.2:
52545254
mimic-fn "^2.1.0"
52555255

52565256
"onnxruntime-common@file:../common":
5257-
version "1.17.0"
5257+
version "1.18.0"
52585258

52595259
open@^6.2.0:
52605260
version "6.4.0"

js/web/lib/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// This file is generated by /js/scripts/update-version.ts
55
// Do not modify file content manually.
66

7-
export const version = '1.17.0';
7+
export const version = '1.18.0';

js/web/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "git"
99
},
1010
"author": "fs-eire",
11-
"version": "1.17.0",
11+
"version": "1.18.0",
1212
"jsdelivr": "dist/ort.min.js",
1313
"dependencies": {
1414
"flatbuffers": "^1.12.0",

onnxruntime/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://aka.ms/onnxruntime/>`_
88
or the `Github project <https://github.com/microsoft/onnxruntime/>`_.
99
"""
10-
__version__ = "1.17.0"
10+
__version__ = "1.18.0"
1111
__author__ = "Microsoft"
1212

1313
# we need to do device version validation (for example to check Cuda version for an onnxruntime-training package).

onnxruntime/core/session/onnxruntime_c_api.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ Second example, if we wanted to add and remove some members, we'd do this:
23972397
In GetApi we now make it return ort_api_3 for version 3.
23982398
*/
23992399

2400-
static constexpr OrtApi ort_api_1_to_17 = {
2400+
static constexpr OrtApi ort_api_1_to_18 = {
24012401
// NOTE: The ordering of these fields MUST not change after that version has shipped since existing binaries depend on this ordering.
24022402

24032403
// Shipped as version 1 - DO NOT MODIFY (see above text for more information)
@@ -2756,16 +2756,16 @@ static_assert(offsetof(OrtApi, KernelContext_GetResource) / sizeof(void*) == 265
27562756
static_assert(offsetof(OrtApi, SetUserLoggingFunction) / sizeof(void*) == 266, "Size of version 17 API cannot change");
27572757

27582758
// So that nobody forgets to finish an API version, this check will serve as a reminder:
2759-
static_assert(std::string_view(ORT_VERSION) == "1.17.0",
2759+
static_assert(std::string_view(ORT_VERSION) == "1.18.0",
27602760
"ORT_Version change detected, please follow below steps to ensure OrtApi is updated properly");
27612761
// 1. Update the hardcoded version string in above static_assert to silence it
2762-
// 2. If there were any APIs added to ort_api_1_to_17 above:
2762+
// 2. If there were any APIs added to ort_api_1_to_18 above:
27632763
// a. Add the 'End of version #' markers (pattern above should be obvious)
27642764
// b. Add a static_assert in the directly above list of version sizes to ensure nobody adds any more functions to the just shipped API version
27652765

27662766
ORT_API(const OrtApi*, OrtApis::GetApi, uint32_t version) {
27672767
if (version >= 1 && version <= ORT_API_VERSION)
2768-
return &ort_api_1_to_17;
2768+
return &ort_api_1_to_18;
27692769

27702770
fprintf(stderr,
27712771
"The requested API version [%u] is not available, only API versions [1, %u] are supported in this build."

0 commit comments

Comments
 (0)