Fixing back invariant on offsets (#84433)
# Summary
I changed the calculation of offsets to add an extra element for bounding above. This invariant makes sense in the contiguous case but when ntesnor[i] is sliced like in this pr: #83736 this doesn't make semantic sense anymore. SO changing back, Borderline stampy
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84433
Approved by: https://github.com/mikaylagawarecki