Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
Browse files Browse the repository at this point in the history
…zhanyi/updateprotobuf
  • Loading branch information
mszhanyi committed Jan 27, 2023
2 parents 48270e4 + 4ef64f3 commit 39efc46
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion VERSION_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.0
1.15.0
5 changes: 5 additions & 0 deletions docs/python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://ak
Changes
-------

1.15.0
^^^^^^

Release Notes : https://github.com/Microsoft/onnxruntime/releases/tag/v1.15.0

1.14.0
^^^^^^

Expand Down
4 changes: 2 additions & 2 deletions js/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"author": "fs-eire",
"module": "dist/lib/index.js",
"version": "1.14.0",
"version": "1.15.0",
"jsdelivr": "dist/ort-common.min.js",
"scripts": {
"prepare": "tsc && webpack"
Expand Down
6 changes: 3 additions & 3 deletions js/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
3
]
},
"version": "1.14.0",
"version": "1.15.0",
"dependencies": {
"onnxruntime-common": "file:../common"
},
Expand Down
2 changes: 1 addition & 1 deletion js/react_native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"registry": "https://registry.npmjs.org/"
},
"source": "lib/index",
"version": "1.14.0",
"version": "1.15.0",
"main": "dist/commonjs/index",
"homepage": "https://github.com/microsoft/onnxruntime/blob/main/js/react_native/README.md",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion js/react_native/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5197,7 +5197,7 @@ onetime@^5.1.0, onetime@^5.1.2:
mimic-fn "^2.1.0"

"onnxruntime-common@file:../common":
version "1.14.0"
version "1.15.0"

open@^6.2.0:
version "6.4.0"
Expand Down
6 changes: 3 additions & 3 deletions js/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"author": "fs-eire",
"module": "./lib/index.js",
"version": "1.14.0",
"version": "1.15.0",
"jsdelivr": "dist/ort.min.js",
"dependencies": {
"flatbuffers": "^1.12.0",
Expand Down
1 change: 1 addition & 0 deletions js/web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function buildConfig({ filename, format, target, mode, devtool, build_defs }) {
"util": false,
},
fallback: {
"crypto": false,
"fs": false,
"path": false,
"util": false,
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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.14.0"
__version__ = "1.15.0"
__author__ = "Microsoft"

# we need to do device version validation (for example to check Cuda version for an onnxruntime-training package).
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/contrib_ops/cpu/transformers/beam_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Status BeamSearch::Compute(OpKernelContext* ctx) const {
init_beam_state_fp16_func_,
device_copy_func_,
device_copy_int32_func_,
create_encoder_inputs_func_,
create_encoder_inputs_func_ ? create_encoder_inputs_func_ : GenerationCpuDeviceHelper::CreateEncoderInputs,
update_decoder_feeds_fp16_func_,
expand_buffer_int32_func_,
expand_buffer_float_func_,
Expand Down
8 changes: 6 additions & 2 deletions onnxruntime/core/session/onnxruntime_c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2660,6 +2660,10 @@ static constexpr OrtApi ort_api_1_to_14 = {
&OrtApis::KernelInfoGetAttribute_tensor,
&OrtApis::HasSessionConfigEntry,
&OrtApis::GetSessionConfigEntry,
// End of Version 14 - DO NOT MODIFY ABOVE (see above text for more information)

// Start of Version 15 API in progress, safe to modify/rename/rearrange until we ship

};

// 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)
Expand All @@ -2681,10 +2685,10 @@ static_assert(offsetof(OrtApi, ReleaseKernelInfo) / sizeof(void*) == 218, "Size
static_assert(offsetof(OrtApi, ReleaseCANNProviderOptions) / sizeof(void*) == 224, "Size of version 13 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.14.0",
static_assert(std::string_view(ORT_VERSION) == "1.15.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_14 above:
// 2. If there were any APIs added to ort_api_1_to_15 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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct KernelTwo {

struct CustomOpOne : Ort::CustomOpBase<CustomOpOne, KernelOne> {
void* CreateKernel(const OrtApi& /* api */, const OrtKernelInfo* /* info */) const {
return new KernelOne();
return std::make_unique<KernelOne>().release();
};

const char* GetName() const { return "CustomOpOne"; };
Expand All @@ -92,7 +92,7 @@ struct CustomOpOne : Ort::CustomOpBase<CustomOpOne, KernelOne> {

struct CustomOpTwo : Ort::CustomOpBase<CustomOpTwo, KernelTwo> {
void* CreateKernel(const OrtApi& /* api */, const OrtKernelInfo* /* info */) const {
return new KernelTwo();
return std::make_unique<CustomOpTwo>().release();
};

const char* GetName() const { return "CustomOpTwo"; };
Expand Down
2 changes: 1 addition & 1 deletion package/rpm/onnxruntime.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: onnxruntime
Version: 1.14.0
Version: 1.15.0
Release: 1%{?dist}
Summary: onnxruntime

Expand Down

0 comments on commit 39efc46

Please sign in to comment.