index operation support for torch.HalfTensor (#17645)
Summary:
- Test cases added
1. indexing for half tensor
2. setting for half tensor
fixes #17161
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17645
Differential Revision: D14302069
Pulled By: ezyang
fbshipit-source-id: 100f141c07046f200c904e27c5882a9417bccda0