# Questions about Dataloader and Dataset

**URL:** <https://discuss.pytorch.org/t/questions-about-dataloader-and-dataset/806>\
**Category:** Uncategorized\
**Created:** [March 1, 2017, 9:19am UTC](https://discuss.pytorch.org/t/questions-about-dataloader-and-dataset/806 "2017-03-01T09:19:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [March 1, 2017, 11:45am UTC](https://discuss.pytorch.org/t/questions-about-dataloader-and-dataset/806/2 "2017-03-01T11:45:28Z")

</div>

you can look at the default\_collate function if it handles `None` or not.  
Or you can give a custom collate function to your `DataLoader` which will handle `None`:

> <https://github.com/pytorch/pytorch/blob/master/torch/utils/data/dataloader.py#L32>

> <https://github.com/pytorch/pytorch/blob/master/torch/utils/data/dataloader.py#L61-L84>

---

_[View the full topic](https://discuss.pytorch.org/t/questions-about-dataloader-and-dataset/806)._
