Modify the Insert quant-dequant test cases to look for q-dq pattern (#20672)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20672
Current test case looks for q->int_repr->dq pattern and constant nodes also.
The prim::Constant nodes are not guaranteed to be present at same point in graph.
So we modify the test case to only look for the q->int_repr->dq nodes.
Differential Revision: D15405606
fbshipit-source-id: 2086ffb5bbd328d2a9a55f4c2a2de342575194d3