diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc index 22a05e7a07383..51f528714a32b 100644 --- a/onnxruntime/core/session/onnxruntime_c_api.cc +++ b/onnxruntime/core/session/onnxruntime_c_api.cc @@ -2724,6 +2724,7 @@ static constexpr OrtApi ort_api_1_to_17 = { &OrtApis::SetDeterministicCompute, &OrtApis::KernelContext_ParallelFor, &OrtApis::SessionOptionsAppendExecutionProvider_OpenVINO_V2, + // End of Version 17 - DO NOT MODIFY ABOVE (see above text for more information) }; // OrtApiBase can never change as there is no way to know what version of OrtApiBase is returned by OrtGetApiBase. @@ -2753,7 +2754,7 @@ static_assert(offsetof(OrtApi, ReleaseCANNProviderOptions) / sizeof(void*) == 22 static_assert(offsetof(OrtApi, GetSessionConfigEntry) / sizeof(void*) == 238, "Size of version 14 API cannot change"); static_assert(offsetof(OrtApi, GetBuildInfoString) / sizeof(void*) == 254, "Size of version 15 API cannot change"); static_assert(offsetof(OrtApi, KernelContext_GetResource) / sizeof(void*) == 265, "Size of version 16 API cannot change"); -static_assert(offsetof(OrtApi, SetUserLoggingFunction) / sizeof(void*) == 266, "Size of version 17 API cannot change"); +static_assert(offsetof(OrtApi, SessionOptionsAppendExecutionProvider_OpenVINO_V2) / sizeof(void*) == 275, "Size of version 17 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.17.2", diff --git a/onnxruntime/test/providers/cpu/model_tests.cc b/onnxruntime/test/providers/cpu/model_tests.cc index 859e082716760..0b985bb71e00f 100644 --- a/onnxruntime/test/providers/cpu/model_tests.cc +++ b/onnxruntime/test/providers/cpu/model_tests.cc @@ -601,6 +601,7 @@ ::std::vector<::std::basic_string> GetParameterStrings() { std::vector> paths; for (std::pair> kvp : provider_names) { + const ORT_STRING_VIEW provider_name = kvp.first; // Setup ONNX node tests. The test data is preloaded on our CI build machines. #if !defined(_WIN32) ORT_STRING_VIEW node_test_root_path = ORT_TSTR("/data/onnx"); @@ -608,7 +609,10 @@ ::std::vector<::std::basic_string> GetParameterStrings() { ORT_STRING_VIEW node_test_root_path = ORT_TSTR("c:\\local\\data\\onnx"); #endif for (auto p : kvp.second) { - paths.push_back(ConcatPathComponent(node_test_root_path, p)); + // tensorrt ep isn't expected to pass all onnx node tests. exclude and run model tests only. + if (provider_name != provider_name_tensorrt) { + paths.push_back(ConcatPathComponent(node_test_root_path, p)); + } } // Same as the above, except this one is for large models @@ -627,7 +631,6 @@ ::std::vector<::std::basic_string> GetParameterStrings() { } #endif - ORT_STRING_VIEW provider_name = kvp.first; std::unordered_set> all_disabled_tests(std::begin(immutable_broken_tests), std::end(immutable_broken_tests)); if (provider_name == provider_name_cuda) {