Revert "Don't use guardless contiguity/stride-like implementations (#95733)"
This reverts commit deaf077de82789656c707d4b4b2c2e0d1ecee684.
Reverted https://github.com/pytorch/pytorch/pull/95733 on behalf of https://github.com/ezyang due to apparently this regresses executorch tests internally