I have to mention that forwarding the image through the quantized module does give me the right results.

to clarify, does this mean that you are able to run forward on your quantized model, you just cannot trace it?  Knowing the answer to this will help us debug further.