cancel
Showing results for 
Search instead for 
Did you mean: 

Fail on STM32N6 with ONNX model: “index 0 is out of bounds for axis 0 with size 0”

giuug
Associate

Hi,

I am trying to analyze a custom Speech Enhancement ONNX model targeting STM32N6, but the tool fails immediately with an internal error.

Command executed (cmd)

stedgeai analyze -m onnx\best_trained_model.onnx --target stm32n6 --compression none --verbosityST Edge AI Core v3.0.0-20426

Tool version

ST Edge AI Core v3.0.0-20426

Error

TOOL ERROR: index 0 is out of bounds for axis 0 with size 0

 The model is an ONNX export of a neural network used for speech enhancement. I used the code on stm32-model-zoo-services to train this model. Training and evaluation were fine, indeed i've used the .onnx that this phase generates. Then the quantization phase generate another error:

Error (symbolic_shape_infer.py)

Exception: Incomplete symbolic shape inference


What should i do?
@Julian E. 

0 REPLIES 0