How to avoid "Failed to create DXGI factory" message #26909
Unanswered
MarkJacksonRG
asked this question in
API Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can we avoid this message when doing inference with the ONNX runtime?
We've got a C# program that uses the ONNX runtime for inference. At runtime on one PC we get this message to the console output:
Failed to create DXGI factoryFrom searching the ONNX runtime code, it looks like it is this line that outputs the message. I'm new to the ONNX runtime, I can't see an obvious way to suppress the message here. It is output direct to stderr.
I'm guessing the runtime is trying to find GPUs using DirectX. The inference speed is acceptable on CPU so I wonder about disabling the use of GPUs. Is there a way to avoid this message? We don't control our users' environments so prefer not to ask them to fix their DirectX.
We're using
Microsoft.ML.OnnxRuntimeNuget packageBeta Was this translation helpful? Give feedback.
All reactions