parth15041995:

quantize_model


I am not sure what is this script? Is it from the tutorials? Either way, if you follow the steps as shown in the static quantization tutorial, it should convert your model to quantized version. As for the accuracy, it could be that low if you don’t calibrate your model before quantizing it: https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html 17