Port register_prim_ops_c10.cpp to new registration API (#37834)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37834
Ported all use sites of the old registration API to use new Integer operator registration API.
Test Plan: Imported from OSS
Differential Revision: D21415700
Pulled By: MohammadMahdiJavanmard
fbshipit-source-id: 34f18757bad1642e1c485bb30c9771f7b7102230