Do not use deprecated data accessor in IndexKernel.cu (#62268)
Summary:
Fixes repeated warnings like:
```
/var/lib/jenkins/workspace/aten/src/ATen/native/cuda/IndexKernel.cu: In lambda function:
/var/lib/jenkins/workspace/aten/src/ATen/native/cuda/IndexKernel.cu:354:683: warning: 'T* at::Tensor::data() const [with T = c10::BFloat16]' is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
AT_DISPATCH_ALL_TYPES_AND_COMPLEX_AND3 (https://github.com/pytorch/pytorch/commit/e23ddf06e925695df1d7f35c897535e8e9613386)(at::ScalarType::Half, at::ScalarType::Bool, at::ScalarType::BFloat16, iter.dtype(), "take_cuda", [&] {
^
/var/lib/jenkins/workspace/build/aten/src/ATen/core/TensorBody.h:559:1: note: declared here
T * data() const {
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62268
Reviewed By: walterddr
Differential Revision: D29937267
Pulled By: malfet
fbshipit-source-id: 6413deb9762b973880f4a7db47652eacd013214f