Skip to main content
Associate
January 25, 2026
Question

[X-CUBE-AI 10.2.0] Internal Crash: 'range' object has no attribute 'reshape' when analyzing ONNX model

  • January 25, 2026
  • 1 reply
  • 184 views

Hi everyone,

I am trying to deploy a custom ONNX model on the STM32N6 using X-CUBE-AI v10.2.0 (ST Edge AI Core v2.2.0), but the tool crashes immediately during the analysis phase.

Setup:

Problem: When I run the analyze command, "stedgeai" fails with an internal Python exception. It seems to be failing on a specific attribute lookup. And here is the output/error log:

ST Edge AI Core v2.2.0-20266 2adc00962
INTERNAL ERROR: 'range' object has no attribute 'reshape'

Has anyone encountered this specific internal error before? It looks like a bug within the converter itself rather than a standard validation error. I would appreciate any guidance on how to fix the model or the export process to avoid this crash.

1 reply

Julian E.
Technical Moderator
January 30, 2026

Hi @giuug,

 

can you provide me the exact onnx model you used? You can upload it inside a .zip.

 

This error is a compiler error, either caused by an unsupported layer or a bug.

 

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.
giuugAuthor
Associate
January 30, 2026

You'll find two versions of the same network. The main is gtcrn.onnx.