Calibration
Calibration is the terminology of passing data samples to the quantizer and deciding the best scaling factors for
tensors. After setting up the tensor quantizers, one can use the following example to calibrate the model:
thon

Find the TensorQuantizer and enable calibration
for name, module in model.named_modules():
     if name.endswith("_input_quantizer"):
         module.enable_calib()
         module.disable_quant()  # Use full precision data to calibrate
Feeding data samples
model(x)