Fix const correctness for VmapPhysicalView struct methods (#41940)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/41940
See title. I marked methods that don't mutate the VmapPhysicalView as
`const`.
Test Plan: - wait for tests
Reviewed By: albanD
Differential Revision: D22764102
Pulled By: zou3519
fbshipit-source-id: 40f957ad61c85f0e5684357562a541a2712b1f38