fix RandomSampler length (#15991)
authorkyryl <truskovskiyk@gmail.com>
Mon, 14 Jan 2019 07:07:16 +0000 (23:07 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 07:09:51 +0000 (23:09 -0800)
commita7415787ace8090c5f480a4fb6233437a3f4327e
treeef0cc13f3cda94a74e73f87a192d21e1e58b239d
parente18d6cd4550552df93e1b87899ea75b4447225e6
fix RandomSampler length (#15991)

Summary:
Hi!

This PR addresses #15537  issue.
Please review.

Thanks!

Differential Revision: D13649890

Pulled By: soumith

fbshipit-source-id: 166212ae383331345423236dfc4fa2ea907d265d
test/test_dataloader.py
torch/utils/data/sampler.py