-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Improve the functionality of untyped storage for privateuse1. #100868
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/100868
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 88a7612: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f3ee099
to
fc9f805
Compare
@kurtamohler do you think you can take this one? |
Hi, since the TypedStorage API will be deprecated in the future, I'm trying to implement is_pined() in untyped storage to support other backends. The implementation of is_pined() in typed storage is only to invoke the interface in untyped storage. The default value of the ‘device’ parameter is ‘cuda’. Therefore, users of the CUDA backend do not need to modify the usage of this interface. This parameter only needs to be set when other backends support the construction of pin_memory tensors. I sincerely look forward to your discussion and comments, @kurtamohler @ezyang |
I think we should probably add a property function like |
7881ab1
to
aa04df4
Compare
Hi, @kurtamohler |
Yeah that's what I'm suggesting. Although we could make it a readonly property to avoid needing the parentheses, so that it's semantically similar to `Tensor.device' |
a5bf3fe
to
ea5b67f
Compare
Yeah, in this latest PR, both |
Hi, @kurtamohler @ezyang |
22d4d3d
to
d61f3d5
Compare
@pytorchbot merge |
This PR needs a labelIf your changes are user facing and intended to be a part of release notes, please use a label starting with If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see |
Merge failedReason: Approval needed from one of the following: |
@pytorchbot label "release notes: python_frontend" |
Hi, @kurtamohler @ezyang |
I'm not on the list of people whose approval allows a PR to be merged. When Edward has time, his approval will make it possible to merge |
@pytorchbot merge -r |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
…edStorage.is_pinned
Successfully rebased |
d992418
to
88a7612
Compare
This PR needs a
|
Merge failedReason: Approval needed from one of the following: |
This PR needs a
|
@pytorchbot label "release notes: python_frontend" |
@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 |
Complete the implementation of the interface is_pinned() of untyped storage class for privateuse1.
And refactor the implementation in typed storage by untyped_storage.is_pinned().
Hi, @ezyang
This is another improvement of untyped storage for privateuse1, can you take a moment to review it? Thanks.