[fix] torch.kthvalue : handle non-contiguous CUDA tensor (#45802)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/45721
TODO
* [x] Test
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45802
Reviewed By: ngimel
Differential Revision: D24236706
Pulled By: mruberry
fbshipit-source-id: 5a51049233efa710f9500a6f7d099c90d43062c9