mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-22 02:30:26 +00:00
Update OrtApi 17 marker (#19897)
### Description <!-- Describe your changes. --> Looks like a bunch of new C OrtApis are introduced in 1.17.0 time frame, however the static assert sanity check has not been updated along the prs. Fix OrtApi marker. Related issue: #19893 ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> The branch is checked out against rel-1.17.2. Once rel-1.17.3 is made, it will be based on this right version. --------- Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net> Co-authored-by: George Wu <jywu@microsoft.com>
This commit is contained in:
parent
6bc6adc658
commit
633c22fa9c
2 changed files with 7 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -601,6 +601,7 @@ static ORT_STRING_VIEW provider_name_dml = ORT_TSTR("dml");
|
|||
std::vector<std::basic_string<ORTCHAR_T>> paths;
|
||||
|
||||
for (std::pair<ORT_STRING_VIEW, std::vector<ORT_STRING_VIEW>> 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 @@ static ORT_STRING_VIEW provider_name_dml = ORT_TSTR("dml");
|
|||
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 @@ static ORT_STRING_VIEW provider_name_dml = ORT_TSTR("dml");
|
|||
}
|
||||
#endif
|
||||
|
||||
ORT_STRING_VIEW provider_name = kvp.first;
|
||||
std::unordered_set<std::basic_string<ORTCHAR_T>> all_disabled_tests(std::begin(immutable_broken_tests),
|
||||
std::end(immutable_broken_tests));
|
||||
if (provider_name == provider_name_cuda) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue