Fix some return std::move warnings (#27384)
Summary:
clang-tidy was complaining about these
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27384
Pulled By: driazati
Differential Revision: D17767412
fbshipit-source-id: 03e2630790edf3f6bbf9064e754156613032b464