Change the quant-dequant node pattern for jit op substitution pass (#19910)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19910
This change modifies the quant-dequant node pattern from
qparam->q->dq to qparam->q->int_repr->qparam->dq. The motivation for
this change is to make the qparams required for op substition one level
up at dequant node instead of multiple levels up.
Differential Revision: D15120146
fbshipit-source-id: 74b0fd5cb50a338f562740a9cc727a7791c718c3