Hello, I am following FX mode post training static quantization tutorial 1, and got an error when running the last line of this code below.
# 1. FX Mode quantization
    model_to_quantize = copy.deepcopy(model_fp)
    model_to_quantize.eval()
    qconfig_dict = {"": torch.quantization.get_default_qconfig('qnnpack')}

    # prepare (Insert observer)
    model_prepared = quantize_fx.prepare_fx(model_to_quantize, qconfig_dict)

    # calibrate
    model_prepared.eval()
    model_prepared(img, mask)

-----------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\dalsee\PycharmProjects\PConv\mymodel.py", line 266, in <module>
    model_prepared(img, mask)
  File "C:\Users\dalsee\Anaconda3\envs\deeplearning\lib\site-packages\torch\fx\graph_module.py", line 512, in wrapped_call
    raise e.with_traceback(None)
RuntimeError: Overflow when unpacking long


img and mask are both the input of the model, which is 256x256 tensor converted from graylevel picture.