Skip to content

Is it possible for python to use OrtSessionOptionsAppendExecutionProvider_DML function? #10615

Discussion options

You must be logged in to vote

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.

import onnxruntime as ort
# include all execution providers. alternatively you could use providers=['DmlExecutionProvider']
sess = ort.InferenceSession('model.onnx', providers=ort.get_available_providers())
``

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JiaPai12138
Comment options

@skottmckay
Comment options

@JiaPai12138
Comment options

Answer selected by JiaPai12138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants