[nnc] Simplify i%100 to i if i is less than 100; fixed #52580 (#60693)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60693
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D29375938
Pulled By: huiguoo
fbshipit-source-id: 1388729c5b93805cb156efa53e8823d5462885bf