Closed tpoisonooo closed 1 year ago
We are here simulating quantization; self.zero = 8
means that quantized values are in range [-8, 7] which should correspond to standard symmetric quantization as in the doc you linked (which e.g. shows [-128, 127] for 8-bit). In reality, 0 is still 0 during calculations, the self.zero
is only used for number representation.
If,
self.zero=8
as implemented here.I thought
self.zero=0
according to quantization doc or some inference code.Is there any standard or consensus about symmetric quantization ?