[PyTorch] New expand_inplace API with MaybeOwned<Tensor> and no unary tuples (#55065)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55065
expand_inplace may give you the same Tensor(s) back, and it unnecessarily wrapped single-Tensor results in a tuple. Further diffs will deprecate and replace the rest of the similar APIs in ExpandUtils.
ghstack-source-id: 126170049
Test Plan: beyonce_test
Reviewed By: ezyang
Differential Revision: D27469297
fbshipit-source-id: 56cf14bc5603355f399fef2e5b02b97afa504428