Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

How to quantize weights only on Imagenet? #21

Open
sachitkuhar opened this issue Aug 11, 2020 · 2 comments
Open

How to quantize weights only on Imagenet? #21

sachitkuhar opened this issue Aug 11, 2020 · 2 comments

Comments

@sachitkuhar
Copy link

I wanted to quantize weights only. Should 'qa' be set equal to 0/32?
Thanks

@EowinYe
Copy link
Collaborator

EowinYe commented Aug 22, 2020

You could set 'qa' to 0 to train a cifar10 model with weight quantization only. But we didn't provide the interface to quantize weight only for ImageNet. If you want, you should change related codes in learned_quantization.py

@sachitkuhar
Copy link
Author

Thanks for your reply!

In cifar10-vgg-small.py- if 'qa'=0 then you do not use 'QuantizedActiv' function.
Does this imply that if 'QuantizedActiv' function is an identity function; Imagenet.py will perform weight quantization only?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants