DML EP is not executing nodes, despite it registering as a provider successfully #9677
Answered
by
wschin
david-macleod
asked this question in
Other Q&A
-
I am currently experiencing an issue where models are not run using the DML EP, despite using the import onnxruntime as ort
import torch
model = torch.nn.Sequential(*[torch.nn.Linear(4096, 4096) for _ in range(4)])
x = torch.randn(1, 4096)
torch.onnx.export(torch.jit.script(model), args=x, f="tmp.onnx", input_names=["x"], opset_version=13, example_outputs=x)
options = ort.SessionOptions()
options.log_severity_level = 0
session = ort.InferenceSession("tmp.onnx", options, providers=["DmlExecutionProvider"])
print("EPs", session.get_providers())
for _ in range(10):
session.run(None, input_feed={"x": x.numpy()}) Which includes the following in the logs
but also
Can anyone suggest a fix for this? I am using |
Beta Was this translation helpful? Give feedback.
Answered by
wschin
Nov 16, 2021
Replies: 1 comment 2 replies
-
Could you please try @fdwr , would it be reasonable to add opset 13 support? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
fdwr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you please try
opset_version=10
? Thanks. I only see support up to opset 12 in DML EP.@fdwr , would it be reasonable to add opset 13 support?