Optimize implementation of torch.pow (#46830)
Summary:
- Related with https://github.com/pytorch/pytorch/issues/44937
- Use `resize_output` instead of `resize_as`
- Tuning the `native_functions.yaml`, move the inplace variant `pow_` next to the other `pow` entries
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46830
Reviewed By: mrshenli
Differential Revision: D24567702
Pulled By: anjali411
fbshipit-source-id: a352422c9d4e356574dbfdf21fb57f7ca7c6075d