While analyzing the model with STM32 AI (GUI), confronted a "TOOL ERROR: (1, 4, 12, 10) is not a permutation for (2, 0, 1)"
I confronted an error "TOOL ERROR: (1, 4, 12, 10) is not a permutation for (2, 0, 1)"
It seems there's some issues with handling the model structure. But I can't figure it out.
The model perfectly works on python and the structure is not so different from models which had been successfully imported to the my board (NUCLEO-L452RE)
The tool version is X-CUBE-AI 5.1.2 and I'm using the STM32CubeMX GUI.
The model has the structure shown below (checked by model.summary())
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_8 (InputLayer) [(None, 36, 100, 1)] 0
_________________________________________________________________
conv2d_16 (Conv2D) (None, 36, 100, 5) 130
_________________________________________________________________
average_pooling2d_5 (Average (None, 9, 25, 5) 0
_________________________________________________________________
re_lu_14 (ReLU) (None, 9, 25, 5) 0
_________________________________________________________________
conv2d_17 (Conv2D) (None, 9, 25, 10) 1260
_________________________________________________________________
max_pooling2d_9 (MaxPooling2 (None, 4, 12, 10) 0
_________________________________________________________________
re_lu_15 (ReLU) (None, 4, 12, 10) 0
_________________________________________________________________
flatten_1 (Flatten) (None, 480) 0
_________________________________________________________________
dense_5 (Dense) (None, 6) 2886
_________________________________________________________________
softmax_1 (Softmax) (None, 6) 0
=================================================================
Total params: 4,276
Trainable params: 4,276
Non-trainable params: 0
_________________________________________________________________
The structure shown below is successfully anaylized.
------------------------------------------------------------------------------------------------------------------------
id layer (type) output shape param # connected to macc rom
------------------------------------------------------------------------------------------------------------------------
0 input_2 (Input) (16, 100, 1)
conv2d_0 (Conv2D) (16, 100, 5) 130 input_2 208,005 520
------------------------------------------------------------------------------------------------------------------------
1 pool_1 (Pool) (4, 25, 5) conv2d_0
nl_1 (Nonlinearity) (4, 25, 5) pool_1 500
------------------------------------------------------------------------------------------------------------------------
2 conv2d_2 (Conv2D) (4, 25, 10) 1,260 nl_1 125,970 5,040
------------------------------------------------------------------------------------------------------------------------
3 pool_3 (Pool) (2, 12, 10) conv2d_2
nl_3 (Nonlinearity) (2, 12, 10) pool_3 240
------------------------------------------------------------------------------------------------------------------------
4 conv2d_4 (Conv2D) (2, 12, 6) 546 nl_3 13,110 2,184
------------------------------------------------------------------------------------------------------------------------
5 pool_5 (Pool) (1, 1, 6) conv2d_4
------------------------------------------------------------------------------------------------------------------------
6 nl_6 (Nonlinearity) (1, 1, 6) pool_5 90
------------------------------------------------------------------------------------------------------------------------
