Skip to content

Cannot access onnxruntime API #533

@HemanLin-cl

Description

@HemanLin-cl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions