@@ -2723,10 +2723,14 @@ static constexpr OrtApi ort_api_1_to_18 = {
2723
2723
&OrtApis::SetDeterministicCompute,
2724
2724
&OrtApis::KernelContext_ParallelFor,
2725
2725
&OrtApis::SessionOptionsAppendExecutionProvider_OpenVINO_V2,
2726
+ // End of Version 17 - DO NOT MODIFY ABOVE (see above text for more information)
2727
+
2726
2728
&OrtApis::SessionOptionsAppendExecutionProvider_VitisAI,
2727
2729
&OrtApis::KernelContext_GetScratchBuffer,
2728
2730
&OrtApis::KernelInfoGetAllocator,
2729
- &OrtApis::AddExternalInitializersFromFilesInMemory};
2731
+ &OrtApis::AddExternalInitializersFromFilesInMemory
2732
+ // End of Version 18 - DO NOT MODIFY ABOVE (see above text for more information)
2733
+ };
2730
2734
2731
2735
// OrtApiBase can never change as there is no way to know what version of OrtApiBase is returned by OrtGetApiBase.
2732
2736
static_assert (sizeof (OrtApiBase) == sizeof(void *) * 2, "New methods can't be added to OrtApiBase as it is not versioned");
@@ -2755,7 +2759,8 @@ static_assert(offsetof(OrtApi, ReleaseCANNProviderOptions) / sizeof(void*) == 22
2755
2759
static_assert (offsetof(OrtApi, GetSessionConfigEntry) / sizeof(void *) == 238, "Size of version 14 API cannot change");
2756
2760
static_assert (offsetof(OrtApi, GetBuildInfoString) / sizeof(void *) == 254, "Size of version 15 API cannot change");
2757
2761
static_assert (offsetof(OrtApi, KernelContext_GetResource) / sizeof(void *) == 265, "Size of version 16 API cannot change");
2758
- static_assert (offsetof(OrtApi, SetUserLoggingFunction) / sizeof(void *) == 266, "Size of version 17 API cannot change");
2762
+ static_assert (offsetof(OrtApi, SessionOptionsAppendExecutionProvider_OpenVINO_V2) / sizeof(void *) == 275, "Size of version 17 API cannot change");
2763
+ static_assert (offsetof(OrtApi, AddExternalInitializersFromFilesInMemory) / sizeof(void *) == 279, "Size of version 18 API cannot change");
2759
2764
2760
2765
// So that nobody forgets to finish an API version, this check will serve as a reminder:
2761
2766
static_assert (std::string_view(ORT_VERSION) == "1.18.0",
0 commit comments