[quantization] how to quantize model which include not support to quantize layer

you’ll need to use different quant stub module for each usage because it is recording tensor statistics at that point.
e.g.

x = self.quant1(x)
...
x = self.dequant(x)
...
x = self.quant2(x)
...
x = self.dequant(x)
3 Likes