[quant][fx][be] Refactor replace observer with q/dq op code (#89247)
Summary:
This is a refactor to prepare for future extensions, no functionality changes
Test Plan:
python test/test_quantization.py TestQuantizeFx
Reviewers:
Subscribers:
Tasks:
Tags:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89247
Approved by: https://github.com/vkuzo, https://github.com/andrewor14