Fixed usage of std::move function (#46199)
Summary:
Removed std::move in situations when move wasn't really possible (therefore std::move didn't move anything but created copy instead).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46199
Reviewed By: bdhirsh
Differential Revision: D24287408
Pulled By: glaringlee
fbshipit-source-id: f88b9500e7bbaa709bff62b845966e2adc7fa588