STM32CubeMX ERROR when analyzing ONNX model (CNN)
- June 2, 2025
- 2 replies
- 707 views
Dear Community,
I'm evaluating whether some of the STM32 ICs are suitable for future projects using simple CNNs (Convolutional Neural Networks).
I'm running into problems when trying to analyze a simple CNN model in the ONNX format (converted to ONNX from pyTorch) in the STM32CubeMX AI IDE. I'm using ST Edge AI Core v2.0.0-20049 and once I click on 'analyze' in the network tab, the IDE gives me the error 'INTERNAL ERROR: 'kernel_shape''.
Please see the model attached below.

I could not find any hint in the docs and as far as I know all the operations should be supported, shouldn't they?
I tried to experimenting with the layers and the kernel sizes but the error was not fixed.
The CONV-Layer is leading to the error.
I would be happy about a hint how to fix this error or if the platform does not support some operations or if there are some general issues known with CNNs.
I attached the ONNX model below.
Thank you!
