BatchSampler now uses list.clear() instead of creating new objects
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/20976
Differential Revision: D15511921
Pulled By: soumith
fbshipit-source-id: e943d21e75e19f9154a0570f3188cc3ce174083e