Is it possible for python to use OrtSessionOptionsAppendExecutionProvider_DML function? #10615
Answered
by
skottmckay
JiaPai12138
asked this question in
Other Q&A
-
I can set it manually through graphic settings, but how to do it in program? |
Beta Was this translation helpful? Give feedback.
Answered by
skottmckay
Feb 21, 2022
Replies: 1 comment 3 replies
-
You would need a build that included DML. You can check the output from import onnxruntime as ort
# include all execution providers. alternatively you could use providers=['DmlExecutionProvider']
sess = ort.InferenceSession('model.onnx', providers=ort.get_available_providers())
`` |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
JiaPai12138
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would need a build that included DML. You can check the output from
get_available_providers
to make sure the DML execution provider is listed.