[inductor] add a few tests to verify view_to_reshape pass is safe (#103034)
This PR follows up on issue https://github.com/pytorch/pytorch/issues/102229 . I added 2 unit tests and verified that autoaugorad/functionalization already handles view properly. The view_to_reshape pass does not cause an issues.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103034
Approved by: https://github.com/ezyang