Fix codegen for out operators (#28184)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28184
Out overloads of operators have a different `name` and `operator_name`. Fix the codegen for them.
ghstack-source-id: 92436987
Test Plan: A diff stacked on top enables `use_c10_dispatcher` for out operators. Doesn't work without but works with this diff.
Differential Revision: D17969013
fbshipit-source-id: 7b1118c9a4a36997e7375fac8d870ff08e7ff453