In OrtCreateSession it fails trying to load an onnx model with message:
failed:[ShapeInferenceError] Attribute pads has incorrect size
What does it mean? Where do I look for the problem? Thanks for any ideas.
In OrtCreateSession it fails trying to load an onnx model with message:
failed:[ShapeInferenceError] Attribute pads has incorrect size
What does it mean? Where do I look for the problem? Thanks for any ideas.
The error is coming from one of the convolution or maxpool operators. What this error means is the shape of pads input is not compatible with expected shape for this node.
You can refer to (https://github.com/onnx/onnx/blob/master/docs/Operators.md) to understand the expected size of pads attribute.
Where is this model from? If you got this model from onnx model zoo then please add model name\link here and also add your current onnxruntime version.
Please use https://github.com/microsoft/onnxruntime/issues for this issue.