[pytorch] register c10 ops for static dispatch (#35193)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35193
PR #34275 / D20266240 caused size regression.
PR #35148 / D20578316 reverted partially to fix the regression.
With buck selective build landed it should no longer cause size regression. This diff relands the reverted part of the original diff.
ghstack-source-id: 100641910
Test Plan: CI
Differential Revision: D20586305
fbshipit-source-id: 6f314d6c13d1a557b314123a5ca350ab88441e95