Reset worker cycle iterator for determinism across runs (#73675)
Summary:
Reset worker cycle iterator for determinism across runs
Fixes https://github.com/pytorch/pytorch/issues/73603
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73675
Reviewed By: bdhirsh
Differential Revision: D34688704
Pulled By: ejguan
fbshipit-source-id: 7bab11f0b9f59645d9b168fa11d92dc7c2c4d34e
(cherry picked from commit eb5fd559224988f9967528e154cf37c5031fe7c2)