Skip to content

How to get the current provider used in C++ inference stage? #4140

@Liujingxiu23

Description

@Liujingxiu23

I compiled openvino and onnxruntime from source code.
onnxruntime was build with --use_openvino. Build done successfully and *.so generated.

when I run command "grep -r "CreateExecutionProviderFactory_OpenVINO" *"in the my libdir, shows:
Binary file libonnxruntime.so matches
Binary file libonnxruntime.so.1.3.0 matches

Does the complie success == the openvino is used?
How can I check whether the current provider is OpenVINO, is there any C/C++ api like "get_the_current_provider"?
And How can I clearly specified the provider I used. is there any C/C++ api like "set_provider"?

I see this function "GetExecutionProviderType", is this usefull for me? how to use it ? Is there is any example?

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