cancel
Showing results for 
Search instead for 
Did you mean: 

Error when anaylsing Onnx model “INTERNAL ERROR: Order of dimensions of input cannot be interpreted"

Levy-hy
Associate II

Hello, I'm trying to generate C code for my Onnx model using ST Edge AI Core.

I've tried both X-CUBE-AI and ST Edge AI Developer Cloud, and they gave me the same error:

Levyhy_0-1754358134734.png

It's strange that Netron could still draw the correct graph containing the dimensions of input .Does this indicate that the input dimension has been successfully parsed?

Levyhy_1-1754358386556.png

I tried simplifying the model input, but it still reported an error. Can anyone give me some advice? Thank you.

 



1 REPLY 1
Julian E.
ST Employee

Hello @Levy-hy,

 

Your onnx model seem fine as you pointed out.

 

The error here says that the st edge ai core (the CLI behind both X Cube AI and Dev cloud) is having an issue while converting it. It is the C conversion that has an issue, not your model.

It could come from unsupported layer, bug, other issue.

 

Could you share your model?

You can try to use the --use-onnx-simplifier in X Cube MX or Dev cloud.

In X Cube AI, above the Analyze button, you should see a wheel (parameters) button. In here, you can add a command (bottom of the first page menu).

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.