Change DeprecationWarning to UserWarning in `torch.cuda` (#32142)
Summary:
Follow-up of https://github.com/pytorch/pytorch/issues/27361 .
Addresses https://github.com/pytorch/pytorch/issues/32141 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32142
Differential Revision: D19404540
Pulled By: gchanan
fbshipit-source-id: f0b230a3224004286064da2b617ff471ba272f47