cancel
Showing results for 
Search instead for 
Did you mean: 

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

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.

 



3 REPLIES 3
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.

Hi @Julian E. 

Thank you for explaining the error for me!

I tried adding --use-onnx-simplifier in extra command line, but then I got an error message about the transpose of the LSTM model.

Levyhy_0-1754450010099.png

Perhaps there are some layers in my model that Edge AI cannot recognize? I will try to modify the model and see if it could work.

It seems that the model type is not supported for attaching file, so I'll try to solve it myself first, thank you so much!

Hello @Levy-hy,

 

Yes, your error in this case seems to be due to a parameter of Transpose not being supported.

You can find the list of supported layers here:

https://stedgeai-dc.st.com/assets/embedded-docs/index.html 

In the section: Supported layers/operators

If you are using the N6 and the NPU, you have to look at the page: ST Neural-ART NPU - Supported operators and limitations.

 

To upload your model, you have to zip it.

Please first try to edit your model. If the issue is just that a layer is not supported, I can just report it to the dev team, nothing more.

 

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.