-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add helpers to manipulate futures #57846
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
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 87a5cab (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
| #endif | ||
| } | ||
|
|
||
| c10::intrusive_ptr<JitFuture> RequestCallbackNoPython::asFuture( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason these need to be member functions instead of standalone util functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No "strong" reason, but:
- several other helper functions in this file were defined as methods (e.g.,
cudaAvailable) - we need this to be available both to
RequestCallbackNoPythonand to its subclassRequestCallbackImpl(hence it needs to be public, it cannot go in an unnamed namespace) - by making it a method in a sense we "namespace" it
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/) [ghstack-poisoned]
Pull Request resolved: pytorch#57846 In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later. ghstack-source-id: 129567064 Differential Revision: [D28253664](https://our.internmc.facebook.com/intern/diff/D28253664/)
|
This pull request has been merged in 7e1f2b3. |
Stack from ghstack:
In later PRs I'll need to create already-completed futures (it'll make sense then, I hope). Here are a few helpers for that, which I'm adding separately to reduce the noise later.
Differential Revision: D28253664