Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTorch DataLoader, use num_workers=1 by default? #1437

Open
albertz opened this issue Oct 17, 2023 · 0 comments
Open

PyTorch DataLoader, use num_workers=1 by default? #1437

albertz opened this issue Oct 17, 2023 · 0 comments

Comments

@albertz
Copy link
Member

albertz commented Oct 17, 2023

Pro num_workers=1:

Contra, i.e. leave the current default, num_workers=0:

  • It is different from the PyTorch default.
  • There might be rare cases where it does not work? (But I don't know any. I think all RETURNN datasets should work just fine.)
  • Debugging might be more difficult.
  • It's more complex logic.
  • It adds some memory overhead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant