mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Winml should be built against v2 of the capi as that includes the new type info apis (#2991)
This commit is contained in:
parent
c8ea154e55
commit
ca7626d739
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ static constexpr WinmlAdapterApi winml_adapter_api_1 = {
|
|||
};
|
||||
|
||||
const WinmlAdapterApi* ORT_API_CALL OrtGetWinMLAdapter(const OrtApi* ort_api) NO_EXCEPTION {
|
||||
if (OrtApis::GetApi(1) == ort_api) {
|
||||
if (OrtApis::GetApi(2) == ort_api) {
|
||||
return &winml_adapter_api_1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
using namespace WinML;
|
||||
|
||||
static const OrtApi* GetVersionedOrtApi() {
|
||||
static const uint32_t ort_version = 1;
|
||||
static const uint32_t ort_version = 2;
|
||||
const auto ort_api_base = OrtGetApiBase();
|
||||
return ort_api_base->GetApi(ort_version);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue