APoT_Quantization icon indicating copy to clipboard operation
APoT_Quantization copied to clipboard

Differences between quant_layer.py

Open zhangchuanyi96 opened this issue 4 years ago • 5 comments

Thanks for your nice work and codes!

I found that files quant_layer.py in CIFAR10 and ImageNet are different. Can you please tell me why there exit two versions? BTW, I plan to utilize quantlize MobileNet V2. Which version is better for migration? Thank you.

zhangchuanyi96 avatar Aug 05 '20 03:08 zhangchuanyi96

Hi,

quant_layer.py in CIFAR10 is odder one. You are supposed to use ImageNet folder. BTW, if you correctly migrate our code to MobileNetV2, you could merge to this branch!

Thanks.

yhhhli avatar Aug 07 '20 07:08 yhhhli

Thanks for your reply. I'll try~

zhangchuanyi96 avatar Aug 07 '20 07:08 zhangchuanyi96

Hi,

quant_layer.py in CIFAR10 is odder one. You are supposed to use ImageNet folder. BTW, if you correctly migrate our code to MobileNetV2, you could merge to this branch!

Thanks.

Hi,

I noticed that the difference between quant_layer.py is that the CIFAR10 one has backward path in the self-defined Pytorch function, but the ImageNet one doesn't. Does this mean that the Pytorch is strong enough to self-compute the backward gradient of RCF?

Thank you very much!

kuny1240 avatar Aug 24 '20 23:08 kuny1240

yes, you are right.

yhhhli avatar Aug 25 '20 00:08 yhhhli

Thank you for your reply!

kuny1240 avatar Aug 25 '20 21:08 kuny1240