[inductor] Update how AOTInductor resizes output tensors (#108412)
Summary: Improve https://github.com/pytorch/pytorch/pull/107848 so that there is no resize_ needed for output tensors when existing the main function.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108412
Approved by: https://github.com/jansel