Integrate prepacked workaround in QuantFusion (#26939)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26939
Updated quant fusion patterns to work with modules with prepack
params folded into module.
Test Plan:
python test/test_jit.py 'TestJit.test_quant_fusion'
Imported from OSS
Differential Revision: D17636398
fbshipit-source-id: 8e7917e981260b81ed6038a1c2ccf19049726395