Remove native_functions.yaml dependency from IndexKernel.{cpp,cu} (#66914)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66914
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D31856105
Pulled By: dagitses
fbshipit-source-id: 8729783b68879b509ae6b66ce145de0af68aad8c