OFMR Algorithm
The Output Feature Map Reconstruction (OFMR) algorithm determines the optimal quantization factors by searching in an activation distribution. This algorithm applies to PTQ. The following figure shows the quantization principles.
- Infer the original model to obtain the source output of the model to be quantized.
- Transverse all candidate quantization factors, infer the model, and obtain the quantized output.
- Compare the quantized output with the source output to select the quantization factor with the smallest error.
Figure 1 Principles of the OFMR algorithm
Parent topic: Full Quantization Algorithms