0
$\begingroup$

I was checking tflite file in Netron. There I found the quantization formula in Netron as below:

quantization: 0.007709330413490534 * (q + 3)

I know the quantization formula is: quantized_value = (r/S + Z) Where, r = input, S = scale and Z = zero-point

I have used quantization-aware training before converting the model to the TFLite model. I have uploaded the TFlite Model file to Netron App website where I have found quantization as below image. Can anyone explain What do the q and 3 mean in Netron quantization?

enter image description here

$\endgroup$
3
  • $\begingroup$ Hello. Can you 1. put your specific question in the title, and 2. provide the link to the source where you took that screenshot from? $\endgroup$
    – nbro
    Jan 4 at 9:37
  • $\begingroup$ I have added the file and edited the title. $\endgroup$
    – Amit
    Jan 4 at 13:23
  • $\begingroup$ Thanks. You may also want to format the equations with latex/mathjax to improve the readability. $\endgroup$
    – nbro
    Jan 4 at 13:44
1
$\begingroup$

I have found the answer to this doubt I had. Here, 0.007709330413490534 = 1 / S, q = input, Z = 3. Basically, this is the formula to quantize the input value. If you pull out 1/S then it becomes clear. Here, is an article related to this topic.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.