Skip to content

[core] FuseMulAdd weights issue

When merging MatMul and Add we do not check the order of the inputs of the MatMul.

In this case, the weight are at the first input (A): MatMul1

Whereas here, the weight are at the second input (B): MatMul2

In the case A, when merging and compiling the model, I get the error:

Assertion failed: nbInputFeatures == inChannels in /aidge/aidge/aidge_core/src/operator/FC.cpp:62 Wrong number of input features for input data (5), expected 50

I think we should transpose the weights if they are connected to the first input of the MatMul (here)