[pytorch][buck] fix selective buck build (#34090)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34090
Update the per-op-registration template file to use the new c10 registration API.
ghstack-source-id: 99318973
Test Plan:
```
buck build -c pt.selective_build=1 \
fbandroid/mode/dev_clang_libcxx fbandroid/mode/server \
xplat/caffe2/fb/lite_predictor:lite_predictor_resnet
```
Differential Revision: D20200452
fbshipit-source-id: dc619cb6bdfc0c787b87475eb24b6a2da29e70e2