Release notes here https://github.com/pytorch/pytorch/releases/tag/v0.3.1 say "Negative value for n_workers is the same as having 0 workers #4019" while in the issue and commits ValueError is raised for negative number of workers.