[Static Runtime] Call native resize_/resize_as_ as much as possible (#53425)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53425
t.resize_ goes through the dispatcher. Replace with direct native calls
- t.resize_/resize_as_ -> at::native::resize_/resize_as_
- t.resize_({0}) -> fastResizeToZero(t)
Reviewed By: ajyu, edvgha
Differential Revision: D26836278
fbshipit-source-id: d1a95240099a35f5ece0de2eea50620ba8054ee5