Windows-Machine-Learning icon indicating copy to clipboard operation
Windows-Machine-Learning copied to clipboard

Cannot access onnxruntime API

Open HemanLin-cl opened this issue 5 months ago • 0 comments

Hello,

I've tried the example of https://learn.microsoft.com/en-us/windows/ai/new-windows-ml/tutorial?tabs=cpp

As document described, we shall apply initAPI() before using onnxruntime. However, the program will crash at the point:
OrtGetApiBase() is NULL indeed.

Image

The onnxruntime.dll is 1.22.25.515 WinMLBootstrap.dll is 0.3.134.0 DXGI.dll and D3D12.dll are located under C:\Windows\System32

Are there any steps we should do?

Thanks

HemanLin-cl avatar Jul 02 '25 08:07 HemanLin-cl