Closed e-dupuis closed 3 years ago
Not 100% sure but not all Cell type can be quantized... look to be the case for BatchNorm. but the authors can give more advise.
Hi Etienne, This error occur because it is not possible to quantize batchnormalization layer. If you want to quantize a model with batchnormalization layers you have to use the command "-fuse". The batch normalization parameters are then automatically fused with convolutions parameters with this command.
Moreover you have to take care to add the non-linear activations functions (e.g Relu..) on the batchnormalizations layers instead on the convolutions layers.
Closing this issue, the BatchNorm fuse with Conv is now automatic
When exporting a trained net in C with the following command:
n2d2 cifar-10.ini -export C -nbbits 8 -calib -1
I have the following issue:
I don't understand because the argument
-calib -1
is present, and even with different value than -1 I have the same issue, But I encountered this issue only for this network, for LeNet it is working fine