Add 'repeat' argument to profiler.schedule (#51630)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51630
Reviewed By: gdankel
Differential Revision: D26246317
Pulled By: ilia-cher
fbshipit-source-id: 28b572c837184fe1b2a07dd57e99aa72cb93a9cb