AOTAutograd: allow input mutations on inputs that are non-contiguous (#106460)
Fixes https://github.com/pytorch/pytorch/issues/106456
I also had to update the logic in functionalization's resize_() kernel to convey to AOTAutograd that resize_() is a metadata mutation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106460
Approved by: https://github.com/ezyang