2026-01-20 7:12 AM
Hello,
I am trying to convert my Onnx model with the ST Edge AI Core tool to the .nb format for the STM32MP25 target.
While converting the model i get the following error:
ST Edge AI Core v2.2.0-20266
INTERNAL ERROR: unsupported operand type(s) for *: 'int' and 'shape_struct'
I could track down the error to a resize operation in the Onnx model. Here is a short snippet how the model looks like:
When i remove the resize operations and downscale the 28 x 28 patches to 14 x 14 patches. Then the error is gone.
So i think that the resize operation is the problem.
This happens for quantized and non quantized models.
Like stated here (STM32MP2 NPU description - stm32mpu), there should be some resize operations implemented at least on the GPU.
Did anyone had similar issues and know how to fix them?
Thank you in advance for your help.
Best regards
Nils
2026-01-21 12:47 AM
Hi @NilsW,
could you please share the model?
Maybe a untrained version of it if you don't want to disclose everything.
Without it, it is difficult to analyze it.
Have a good day,
Julian
2026-01-21 1:54 AM
Hi @Julian E.,
thanks for your reply.
Sure, i have attatched the model files. It's basically an MobilenetV2 but for the outputs i am using the blocks 2 and 4. I wanted to resize those patches to a common size and concat them.
Best regards
Nils
2026-01-22 8:38 AM
Hi @NilsW,
We confirmed the bug. This comes from the NPU.
We opened a ticket at Verisilicon, our NPU supplier.
I'll update you if we get an answer.
Have a good day,
Julian
2026-01-22 10:17 PM
Hi @Julian E.,
Thank you for confirming the issue and opening the ticket with Verisilicon.I appreciate the update and look forward to hearing back once more information is available.
Best Regards,
Nils
2026-03-09 3:22 AM
Hi @Julian E.
Are there any updates regarding the bug with the conversion since the last communication? Please let me know if there have been any changes.
Best regards
Nils
2026-03-09 6:16 AM
Hi @NilsW,
We received an update from the VSI ticket. We are testing it and looking at how we can deliver it to users.
Have a good day,
Julian
2026-03-09 6:25 AM
Hi @Julian E.
Thank you for the update!
Best regards
Nils