windows-machine-learning

Exception: 'The parameter is incorrect.' When attempting to run an ONNX model with convolution


I am seeing an exception from the WinML runtime 'The parameter is incorrect.' when running a single convolution ONNX model on DirectX devices.

My model runs fine on Default and Cpu devices, and I am able to run the SqueezeNet.onnx model from the Windows Machine Learning repository fine on DirectX devices. My model uses the same operator set id, convolution attributes, weights, and bias as the first SqueezeNet convolution as well. I have also ran the ONNX python library's checker on my model and it appears OK from that tool's perspective.

Is there a way to get more information on what went wrong inside the runtime? Will the API provide more information in the future, or offer a validation function?


Solution

  • You can collect Windows Machine Learning Trace messages using Logman for more informational debugging. Refer to here to see how to use Logman: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/logman

    Here is an example usage of logman on Command Prompt using our GUID: