Fix signed-unsigned compare in FlattenIndicesCommon.h (#96765)
One more regression from https://github.com/pytorch/pytorch/pull/94401
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96765
Approved by: https://github.com/izaitsevfb, https://github.com/Skylion007