[chalf] index_select: cpu support (#79217)
Fixes https://github.com/pytorch/pytorch/issues/79204
PR https://github.com/pytorch/pytorch/pull/78173 took care of adding CUDA support.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79217
Approved by: https://github.com/mruberry