Skip to content

Commit

Permalink
Increase the version number in onnxruntime_c_api.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Sep 29, 2023
1 parent a21df33 commit f3a96ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/session/onnxruntime_c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2744,7 +2744,7 @@ static_assert(offsetof(OrtApi, GetBuildInfoString) / sizeof(void*) == 254, "Size
static_assert(offsetof(OrtApi, KernelContext_GetResource) / sizeof(void*) == 265, "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.16.1",
"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:
Expand Down

0 comments on commit f3a96ce

Please sign in to comment.