jiacheng1gujiaxin:

4,Calibrate the model by running inference against a calibration dataset


Did you add QuantStub and DeQuantStub correctly in the original model? Please follow https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html 38 to do quantization.