sptoyoursoul:

but when I change the qconfig from “torch.quantization.default_qconfig” to “torch.quantization.get_default_qconfig(‘fbgemm’)”. It seems that the code hang on somewhere.


you’ll need to place QuantStub DeQuantStub manually in the code to use eager mode quantization, please follow the tutorials here: https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html 16