hi jerry
thanks for you replay
I do not add any QuantStub, DeQuantStub in my new code. but it does not work still. and the error information is here https://github.com/pytorch/pytorch/issues/34583。I 2 also use Intel‘s distiller to quantize my mode, the quantiztion information is as below：
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.
I also use Intel’s distiller to quntize my mode. I found some information as below:
encoder.layers.1.conv1x3_2.output_zero_point: 0.0
encoder.layers.2.conv3x1_1.output_scale: .inf
encoder.layers.2.conv3x1_1.output_zero_point: 0.0
encoder.layers.2.conv1x3_1.output_scale: .inf
encoder.layers.2.conv1x3_1.output_zero_point: 0.0
encoder.layers.2.conv3x1_2.output_scale: .inf
encoder.layers.2.conv3x1_2.output_zero_point: 0.0
encoder.layers.2.conv1x3_2.output_scale: 808.11376953125
encoder.layers.2.conv1x3_2.output_zero_point: 0.0
encoder.layers.3.conv3x1_1.output_scale: .inf
encoder.layers.3.conv3x1_1.output_zero_point: 0.0
encoder.layers.3.conv1x3_1.output_scale: .inf
encoder.layers.3.conv1x3_1.output_zero_point: 0.0
encoder.layers.3.conv3x1_2.output_scale: .inf
encoder.layers.3.conv3x1_2.output_zero_point: 0.0
encoder.layers.3.conv1x3_2.output_scale: 819.0990600585938
encoder.layers.3.conv1x3_2.output_zero_point: 0.0
encoder.layers.4.conv3x1_1.output_scale: .inf
encoder.layers.4.conv3x1_1.output_zero_point: 0.0
encoder.layers.4.conv1x3_1.output_scale: .inf
encoder.layers.4.conv1x3_1.output_zero_point: 0.0
encoder.layers.4.conv3x1_2.output_scale: .inf
encoder.layers.4.conv3x1_2.output_zero_point: 0.0
it seems that some weight is very small