Skip to content

Commit

Permalink
Bump up API version for 1.6 release (#6076)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsharma authored and Du Li committed Dec 8, 2020
1 parent 98584ea commit 9d2fa67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/onnxruntime/core/session/onnxruntime_c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
4 changes: 3 additions & 1 deletion onnxruntime/core/session/onnxruntime_c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2063,14 +2063,16 @@ 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,
&OrtApis::SessionOptionsAppendExecutionProvider_OpenVINO,
&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)
Expand Down

0 comments on commit 9d2fa67

Please sign in to comment.