@@ -2631,7 +2631,7 @@ Second example, if we wanted to add and remove some members, we'd do this:
2631
2631
In GetApi we now make it return ort_api_3 for version 3.
2632
2632
*/
2633
2633
2634
- static constexpr OrtApi ort_api_1_to_22 = {
2634
+ static constexpr OrtApi ort_api_1_to_23 = {
2635
2635
// NOTE: The ordering of these fields MUST not change after that version has shipped since existing binaries depend on this ordering.
2636
2636
2637
2637
// Shipped as version 1 - DO NOT MODIFY (see above text for more information)
@@ -3012,6 +3012,7 @@ static constexpr OrtApi ort_api_1_to_22 = {
3012
3012
&OrtApis::EpDevice_EpMetadata,
3013
3013
&OrtApis::EpDevice_EpOptions,
3014
3014
&OrtApis::EpDevice_Device,
3015
+ // End of Version 22 - DO NOT MODIFY ABOVE (see above text for more information)
3015
3016
};
3016
3017
3017
3018
// OrtApiBase can never change as there is no way to know what version of OrtApiBase is returned by OrtGetApiBase.
@@ -3049,16 +3050,16 @@ static_assert(offsetof(OrtApi, SetEpDynamicOptions) / sizeof(void*) == 284, "Siz
3049
3050
static_assert (offsetof(OrtApi, EpDevice_Device) / sizeof(void *) == 314, "Size of version 22 API cannot change");
3050
3051
3051
3052
// So that nobody forgets to finish an API version, this check will serve as a reminder:
3052
- static_assert (std::string_view(ORT_VERSION) == "1.22 .0",
3053
+ static_assert (std::string_view(ORT_VERSION) == "1.23 .0",
3053
3054
"ORT_Version change detected, please follow below steps to ensure OrtApi is updated properly");
3054
3055
// 1. Update the hardcoded version string in above static_assert to silence it
3055
- // 2. If there were any APIs added to ort_api_1_to_22 above:
3056
+ // 2. If there were any APIs added to ort_api_1_to_23 above:
3056
3057
// a. Add the 'End of version #' markers (pattern above should be obvious)
3057
3058
// 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
3058
3059
3059
3060
ORT_API (const OrtApi*, OrtApis::GetApi, uint32_t version) {
3060
3061
if (version >= 1 && version <= ORT_API_VERSION)
3061
- return &ort_api_1_to_22 ;
3062
+ return &ort_api_1_to_23 ;
3062
3063
3063
3064
fprintf (stderr,
3064
3065
" The requested API version [%u] is not available, only API versions [1, %u] are supported in this build."
0 commit comments