Loops.cuh legacy code cleanup -- gpu_kernel_with_index (#32777)
Summary:
I didn't see any use case where the functor of `gpu_kernel_with_index` needs to have argument other than the index. Merge conflict with https://github.com/pytorch/pytorch/pull/32755.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32777
Differential Revision: D19646381
Pulled By: ngimel
fbshipit-source-id: 81d2be74170457e39943274e3689845e83758bfa