avoid warning in irange for unsigned types (#97973)
Unsigned types should not be compared to be less than zero.
Differential Revision: [D44538384](https://our.internmc.facebook.com/intern/diff/D44538384/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97973
Approved by: https://github.com/Skylion007