Back out "Revert D17936166: [wip] Constexpr type ids" (#28155)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28155
Original commit changeset: 92c63a96dedd
ghstack-source-id: 92051874
Test Plan: unit tests
Differential Revision: D17964410
fbshipit-source-id: 1d989d28b3e1de6d43c915f122f2b65a77a332eb