vishnukashyap / MNIST-QNN

Training a Simple Quantized Neural Network using Pytorch and brevitas
1 stars 0 forks source link

quant_lenet file has error #2

Closed mustafatasci42 closed 2 years ago

mustafatasci42 commented 2 years ago

error Thanks for this useful repo. qnn_lenet.py file has error in lenet class fc1 layer.

layer size should be 16x4x4 not 16x5x5

vishnukashyap commented 2 years ago

Hi, thanks for pointing it out. I have added the fix, 16x5x5 is the input size of FC1 for CIFAR10, while for MNIST it is 16x4x4, fixed it so that the values are taken as per the selected dataset.