[PyTorch][easy] Move strings into class_::defineMethod (#54533)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54533
There were some forgotten moves here. Since the values are
not otherwise used, let's just not give them names.
ghstack-source-id: 124674348
Test Plan: CI
Reviewed By: SplitInfinity
Differential Revision: D27271991
fbshipit-source-id: 793dd4576db659b3b9b973a4e09ee3133cf41dfe