Bump up API version for 1.6 release (#6076)

This commit is contained in:
Pranav Sharma 2020-12-08 01:24:29 -08:00 committed by GitHub
parent 3cae28699b
commit 2c5ba9ab00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@
#include <string.h>
// This value is used in structures passed to ORT so that a newer version of ORT will still work with them
#define ORT_API_VERSION 5
#define ORT_API_VERSION 6
#ifdef __cplusplus
extern "C" {

View file

@ -2063,7 +2063,6 @@ static constexpr OrtApi ort_api_1_to_6 = {
&OrtApis::SetGlobalSpinControl,
// End of Version 5 - DO NOT MODIFY ABOVE (see above text for more information)
// Version 6 - In development, feel free to add/remove/rearrange here
&OrtApis::AddInitializer,
&OrtApis::CreateEnvWithCustomLoggerAndGlobalThreadPools,
&OrtApis::SessionOptionsAppendExecutionProvider_CUDA,
@ -2071,6 +2070,9 @@ static constexpr OrtApi ort_api_1_to_6 = {
&OrtApis::SetGlobalDenormalAsZero,
&OrtApis::CreateArenaCfg,
&OrtApis::ReleaseArenaCfg,
// End of Version 6 - DO NOT MODIFY ABOVE (see above text for more information)
// Version 7 - In development, feel free to add/remove/rearrange here
};
// Assert to do a limited check to ensure Version 1 of OrtApi never changes (will detect an addition or deletion but not if they cancel out each other)