Last updated 3 years ago
Was this helpful?
quantize:
Converts a float tensor to quantized tensor with given scale and zero point.
Quantization(x, scale, zero_point) = round(x/scale + zero_point)
dequantize:
Mapping the quantized tensor back to the original scale and pivot