[quant][graphmode][refactor] propagateQuantizationOps (#39550)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39550
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs
Test Plan: Imported from OSS
Differential Revision: D21942063
fbshipit-source-id: 518b3e437140bec9620988d2eb59b6aae069245e