From f247735e96b4521768442cd64fdc9dd2cbac93be Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Sat, 7 Sep 2024 15:16:33 +0800 Subject: [PATCH] vsort/vs_onnxruntime.cpp: fix for standalone dml backend compilation --- vsort/vs_onnxruntime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsort/vs_onnxruntime.cpp b/vsort/vs_onnxruntime.cpp index 92e6052..5525151 100644 --- a/vsort/vs_onnxruntime.cpp +++ b/vsort/vs_onnxruntime.cpp @@ -1238,7 +1238,7 @@ static void VS_CC vsOrtCreate( } #endif // ENABLE_COREML #ifdef ENABLE_DML - else if (d->backend == Backend::DML) { + if (d->backend == Backend::DML) { const OrtDmlApi * ortdmlapi {}; checkError(ortapi->GetExecutionProviderApi("DML", ORT_API_VERSION, (const void **) &ortdmlapi)); checkError(ortdmlapi->SessionOptionsAppendExecutionProvider_DML(session_options, d->device_id));