Fix ranges for range vars (#104987)
Ranges are inclusive on both ends...
We take this chance to delete a stale comment
Pull Request resolved: https://github.com/pytorch/pytorch/pull/104987
Approved by: https://github.com/jgong5, https://github.com/eellison