Replace "_scalar_type" string with constant (#83569)
Summary:
Use this refactor to make insertQuantizationOps tempelatized in the
later diff
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: [D38771418](https://our.internmc.facebook.com/intern/diff/D38771418)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83569
Approved by: https://github.com/jerryzh168