BRECQ icon indicating copy to clipboard operation
BRECQ copied to clipboard

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

Open felixslu opened this issue 1 year ago • 0 comments

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

felixslu avatar Aug 23 '23 07:08 felixslu