@jerryzh168 thanks for the reply. yes, it is per channel quantization.
So, I can now generate torch.qint8 tensor from tmp_int8 tensor.
I verified by printing the new_tmp tensor to see the new values are changed.
However, the following line is not updating the model weights:
model_int8.state_dict()['features.0.weight'] = new_tmp

When I print the model_int8.state_dict()['features.0.weight'] it still shows the old values. How can I fix this?
Thank you.