yunjey / pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers
MIT License
29.54k stars 8k forks source link

0-sized dataset produces an error when given to DataLoader #206

Open psteinb opened 4 years ago

psteinb commented 4 years ago

with pytorch 1.2 a dataset of size 0 produces an error. this PR adds a remark on this feature and how a user can resolve this.