yhhhli / BRECQ

Pytorch implementation of BRECQ, ICLR 2021
MIT License
247 stars 56 forks source link

How could I get scale and offset with scalar-type form? #38

Open felixslu opened 1 year ago

felixslu commented 1 year ago

the scale and offset of UniformAffineQuantizer are tensor-type data after I finished quantization. How to convert them to scalar data ,used to generate quantization form. @yhhhli such as:

Encoding:{ bitwidth: integer is_symmetric: string max: float min: float offset: integer scale: float }

and

image