Fix the passing-by-ref constructor of OperatorName. (#32170)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32170
Stack from [ghstack](https://github.com/ezyang/ghstack):
Change the overload name from passing by const ref to by value and move.
* **#32170 Fix the passing-by-ref constructor of OperatorName.**
Test Plan: Imported from OSS
Differential Revision: D19396225
Pulled By: iseeyuan
fbshipit-source-id: e946c47647e1f8d23d7565cfe93f487845e7f24c