[quant][core][devs] Refactor the implementation for quantized batchnorm module (#72489)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72489
To reduce the duplicated code
Test Plan:
python test/test_quantization.py TestStaticQuantizedModule
python test/test_quantization.py TestQuantizeFxOps.test_qbatch_norm
Imported from OSS
Reviewed By: vkuzo
Differential Revision: D34062367
fbshipit-source-id: cee14051bbe5dd2597e0eb6bf2d38993be9e51b3
(cherry picked from commit d9ca5cdbb1c0b5bcd8a98077cdb2b2d9e7aa5c48)