Patch for #40026 RandomSampler generates samples one at a time when replacement=True (#41682)
Summary:
Fix https://github.com/pytorch/pytorch/issues/32530
Fix/Patch https://github.com/pytorch/pytorch/pull/40026
Resubmit this patch and fix the type error.
Force the input type to `manual_seed()` in `sampler.py` to be `int`.
ezyang
Pull Request resolved: https://github.com/pytorch/pytorch/pull/41682
Reviewed By: izdeby
Differential Revision: D22665477
Pulled By: ezyang
fbshipit-source-id: 1725c8aa742c31e74321f20448f4b6a392afb38d