-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Deprecate DataLoader pin_memory_device param #158323
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
Deprecate DataLoader pin_memory_device param #158323
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/158323
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 43dded4 with merge base 7ac70ac ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
af71e0f to
bb4f7dc
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
bb4f7dc to
787a207
Compare
787a207 to
2abd259
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
2abd259 to
46edbcf
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
46edbcf to
431daa1
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
431daa1 to
f7a4af7
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
f7a4af7 to
ce83de7
Compare
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
ce83de7 to
43dded4
Compare
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D78319576. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Build on top of #146821 - Moves enabling pin_memory back inside `_BaseDataLoaderIter` - This is required for `StatefulDataloader` which leveraged `_BaseDataLoaderIter` directly and not the `Dataloader` class init - Add a simple test for CPU only env where setting `pin_memory=True` is a no-op. Pull Request resolved: #158323 Approved by: https://github.com/ramanishsingh Co-authored-by: zeshengzong <zesheng.zong@outlook.com>
Build on top of #146821
_BaseDataLoaderIterStatefulDataloaderwhich leveraged_BaseDataLoaderIterdirectly and not theDataloaderclass initpin_memory=Trueis a no-op.