[PyTorch] Remove unnecessary std::string in Device.cpp (#61502)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61502
No reason not to use string literals here.
ghstack-source-id: 133449808
Test Plan: buildsizebot
Reviewed By: dhruvbird
Differential Revision: D29648079
fbshipit-source-id: 74ecf12283c2f196b4b3edb75c6bb1eeed51322e