Thanks for your reply!



 supriyar:

The error you are seeing is probably because you are missing a quant stub operator before the conv operator.


I understood that I have to insert quant/dequant stub.
But I don’t know how to insert these in the model whose architecture is unknown, as in pretrained model.
Do I have to get mdoel’s architecture and I write model class with quant/dequan stub added??
If I use torch.quantization.QuantWrapper(module ), will be this problem solved?
Thank you!