Winml should be built against v2 of the capi as that includes the new type info apis (#2991)

This commit is contained in:
smk2007 2020-02-07 12:53:30 -08:00 committed by GitHub
parent c8ea154e55
commit ca7626d739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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);
}