# Errors when using num\_workers\>0 in DataLoader

**URL:** <https://discuss.pytorch.org/t/errors-when-using-num-workers-0-in-dataloader/97564>\
**Category:** Uncategorized\
**Created:** [September 26, 2020, 11:05am UTC](https://discuss.pytorch.org/t/errors-when-using-num-workers-0-in-dataloader/97564 "2020-09-26T11:05:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BramVanroy](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/bramvanroy/32/28628_2.png) [@BramVanroy](https://discuss.pytorch.org/u/BramVanroy)\
**Post date:** [September 26, 2020, 2:44pm UTC](https://discuss.pytorch.org/t/errors-when-using-num-workers-0-in-dataloader/97564/2 "2020-09-26T14:44:55Z")

</div>

Num\_workers sets the number of CPU workers in the data loader only. This has nothing to do with GPU utilization - although faster batch preprocessing will lead to batches being loaded faster and thus more streamlined GPU usage. On Windows, due to multiprocessing restrictions, setting num\_workers to \> 0. This is expected, so don’t worry about it. You can set it to 0.

---

_[View the full topic](https://discuss.pytorch.org/t/errors-when-using-num-workers-0-in-dataloader/97564)._
