Zhen-Dong / HAWQ

Quantization library for PyTorch. Support low-precision and mixed-precision quantization, with hardware implementation through TVM.
MIT License
410 stars 83 forks source link

Dyadic number #25

Open leiwen83 opened 2 years ago

leiwen83 commented 2 years ago

Hi,

I check current code base, it seems to me current scale factor is still using linear mapping, which is used in SymmetricQuantFunction?

So where Dyadic number is used for the non-uniform scale transform as described in the paper?

Thx

NewDriverLee commented 2 years ago

Hi,

I check current code base, it seems to me current scale factor is still using linear mapping, which is used in SymmetricQuantFunction?

So where Dyadic number is used for the non-uniform scale transform as described in the paper?

Thx

I think it is implemented in class fixedpoint_fn of quant_utils.py.