-
Notifications
You must be signed in to change notification settings - Fork 46
Add configurable pin_memory and prefetch_factor for DataLoader #347
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,3 +118,5 @@ local: | |
| max_epochs_per_run: 500 | ||
| max_time_per_run: 360000 | ||
| leave_waveforms_on_disk: True | ||
| # pin_memory: True # Set False to reduce memory usage, but slows down transfer of batches from CPU to GPU | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I was testing this, it was confusing that this line is commented out. I would recommend to stay consistent and not comment defaults to make it easy to understand for the user.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same applies to |
||
| # prefetch_factor: 1 # Number of batches each worker prefetches; higher uses more memory | ||
Uh oh!
There was an error while loading. Please reload this page.