The exception raised when RandomSampler.replacement is non-boolean should be TypeError (#36547)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36547
Differential Revision: D21818752
Pulled By: ezyang
fbshipit-source-id: 7502a24a0df134c44ac72959ba992777c873f8e9