Closed jrg1381 closed 2 years ago
@jrg1381 : It's very likely this issue in the execution provider, if your model has empty tensors with zero dimensions in it: https://github.com/microsoft/onnxruntime/pull/9361
Aah, it's the exact same issue from Speechmatics. FYI @sumitsays. Thanks for the great reduced repro James.
DirectMLExample.zip
I have an example with a simple model, which fails with the DML provider, but succeeds with the CPU provider (change the bool variable in the example code to switch between the two). When inference runs, there's an invalid read with this C# stack trace:
I dug deeper in a C++ version which used a similar model (smallest repro model included in the .zip file attached to this issue) and a debug build of onnxruntime.dll. It's failing here
With the stack trace ("Exception thrown: read access violation. this was nullptr.)
I'm using version
1.9.20210921.7.4daa14b
ofonnxruntime.dll
in the C#, and the C++ debug build the stack trace is from is built from git tagcba4bc11c78a55fa3aeb7c1490e8f9b387dceeec
on the https://github.com/microsoft/onnxruntime.git repository.If the problem isn't in this repo, do feel free to transfer this issue to microsoft/onnxruntime if that's more suitable. (I'm new to both)