This problem can be solved by https://discuss.tvm.apache.org/t/pytorch-quantization-error-during-quantization/7167?u=abraham.