mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Bump Up Version to 1.17.0 (#17587)
Bump up version to 1.17.0 as the 1.16.0 release branch had been branched out.
This commit is contained in:
parent
f297d4dfb9
commit
e6301eee6a
18 changed files with 31 additions and 26 deletions
|
|
@ -1 +1 @@
|
|||
1.16.0
|
||||
1.17.0
|
||||
|
|
|
|||
|
|
@ -62,10 +62,10 @@ namespace Microsoft.ML.OnnxRuntime
|
|||
DOrtGetApi OrtGetApi = (DOrtGetApi)Marshal.GetDelegateForFunctionPointer(NativeMethods.OrtGetApiBase().GetApi, typeof(DOrtGetApi));
|
||||
|
||||
// TODO: Make this save the pointer, and not copy the whole structure across
|
||||
api_ = (OrtApi)OrtGetApi(16 /*ORT_API_VERSION*/);
|
||||
api_ = (OrtApi)OrtGetApi(17 /*ORT_API_VERSION*/);
|
||||
|
||||
OrtGetTrainingApi = (DOrtGetTrainingApi)Marshal.GetDelegateForFunctionPointer(api_.GetTrainingApi, typeof(DOrtGetTrainingApi));
|
||||
trainingApiPtr = OrtGetTrainingApi(16 /*ORT_API_VERSION*/);
|
||||
trainingApiPtr = OrtGetTrainingApi(17 /*ORT_API_VERSION*/);
|
||||
if (trainingApiPtr != IntPtr.Zero)
|
||||
{
|
||||
trainingApi_ = (OrtTrainingApi)Marshal.PtrToStructure(trainingApiPtr, typeof(OrtTrainingApi));
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://ak
|
|||
Changes
|
||||
-------
|
||||
|
||||
1.17.0
|
||||
^^^^^^
|
||||
|
||||
Release Notes : https://github.com/Microsoft/onnxruntime/releases/tag/v1.17.0
|
||||
|
||||
1.16.0
|
||||
^^^^^^
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
*
|
||||
* This value is used by some API functions to behave as this version of the header expects.
|
||||
*/
|
||||
#define ORT_API_VERSION 16
|
||||
#define ORT_API_VERSION 17
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
// This file is generated by /js/scripts/update-version.ts
|
||||
// Do not modify file content manually.
|
||||
|
||||
export const version = '1.16.0';
|
||||
export const version = '1.17.0';
|
||||
|
|
|
|||
4
js/common/package-lock.json
generated
4
js/common/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "onnxruntime-common",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "onnxruntime-common",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"typedoc": "^0.23.22"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"license": "MIT",
|
||||
"type": "module",
|
||||
"name": "onnxruntime-common",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"repository": {
|
||||
"url": "https://github.com/Microsoft/onnxruntime.git",
|
||||
"type": "git"
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
// This file is generated by /js/scripts/update-version.ts
|
||||
// Do not modify file content manually.
|
||||
|
||||
export const version = '1.16.0';
|
||||
export const version = '1.17.0';
|
||||
|
|
|
|||
6
js/node/package-lock.json
generated
6
js/node/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "onnxruntime-node",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "onnxruntime-node",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"license": "MIT",
|
||||
"os": [
|
||||
"win32",
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"../common": {
|
||||
"name": "onnxruntime-common",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"typedoc": "^0.23.22"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
3
|
||||
]
|
||||
},
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"dependencies": {
|
||||
"onnxruntime-common": "file:../common"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
// This file is generated by /js/scripts/update-version.ts
|
||||
// Do not modify file content manually.
|
||||
|
||||
export const version = '1.16.0';
|
||||
export const version = '1.17.0';
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"source": "lib/index",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"main": "dist/commonjs/index",
|
||||
"homepage": "https://github.com/microsoft/onnxruntime/blob/main/js/react_native/README.md",
|
||||
"files": [
|
||||
|
|
|
|||
|
|
@ -5188,7 +5188,7 @@ onetime@^5.1.0, onetime@^5.1.2:
|
|||
mimic-fn "^2.1.0"
|
||||
|
||||
"onnxruntime-common@file:../common":
|
||||
version "1.16.0"
|
||||
version "1.17.0"
|
||||
|
||||
open@^6.2.0:
|
||||
version "6.4.0"
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
// This file is generated by /js/scripts/update-version.ts
|
||||
// Do not modify file content manually.
|
||||
|
||||
export const version = '1.16.0';
|
||||
export const version = '1.17.0';
|
||||
|
|
|
|||
6
js/web/package-lock.json
generated
6
js/web/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "onnxruntime-web",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "onnxruntime-web",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"flatbuffers": "^1.12.0",
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
"../common": {
|
||||
"name": "onnxruntime-common",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"typedoc": "^0.23.22"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"type": "git"
|
||||
},
|
||||
"author": "fs-eire",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"jsdelivr": "dist/ort.min.js",
|
||||
"dependencies": {
|
||||
"flatbuffers": "^1.12.0",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ ONNX Runtime is a performance-focused scoring engine for Open Neural Network Exc
|
|||
For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://aka.ms/onnxruntime/>`_
|
||||
or the `Github project <https://github.com/microsoft/onnxruntime/>`_.
|
||||
"""
|
||||
__version__ = "1.16.0"
|
||||
__version__ = "1.17.0"
|
||||
__author__ = "Microsoft"
|
||||
|
||||
# we need to do device version validation (for example to check Cuda version for an onnxruntime-training package).
|
||||
|
|
|
|||
|
|
@ -2397,7 +2397,7 @@ Second example, if we wanted to add and remove some members, we'd do this:
|
|||
In GetApi we now make it return ort_api_3 for version 3.
|
||||
*/
|
||||
|
||||
static constexpr OrtApi ort_api_1_to_16 = {
|
||||
static constexpr OrtApi ort_api_1_to_17 = {
|
||||
// NOTE: The ordering of these fields MUST not change after that version has shipped since existing binaries depend on this ordering.
|
||||
|
||||
// Shipped as version 1 - DO NOT MODIFY (see above text for more information)
|
||||
|
|
@ -2745,16 +2745,16 @@ static_assert(offsetof(OrtApi, GetBuildInfoString) / sizeof(void*) == 254, "Size
|
|||
static_assert(offsetof(OrtApi, GetCUDAProviderOptionsByName) / sizeof(void*) == 264, "Size of version 16 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.16.0",
|
||||
static_assert(std::string_view(ORT_VERSION) == "1.17.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_16 above:
|
||||
// 2. If there were any APIs added to ort_api_1_to_17 above:
|
||||
// a. Add the 'End of version #' markers (pattern above should be obvious)
|
||||
// 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
|
||||
|
||||
ORT_API(const OrtApi*, OrtApis::GetApi, uint32_t version) {
|
||||
if (version >= 1 && version <= ORT_API_VERSION)
|
||||
return &ort_api_1_to_16;
|
||||
return &ort_api_1_to_17;
|
||||
|
||||
fprintf(stderr,
|
||||
"The requested API version [%u] is not available, only API versions [1, %u] are supported in this build."
|
||||
|
|
|
|||
Loading…
Reference in a new issue