-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Make some methods of RequestCallback return void instead of bool #57849
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
Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 19bd6f0 (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:
|
Job | Step | Action |
---|---|---|
Run tests | 🔁 rerun |
This comment was automatically generated by Dr. CI (expand for details).
Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group.
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
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.
LGTM!
"Return value of a builtin operator or a " | ||
"TorchScript function should be a single IValue, got a vector of " | ||
"size ", |
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.
nit: these can fit in two lines?
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.
Please feel free to update this in followup PRs. I don't want to make you rebase and wait for another 6H, just for these little changes.
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
…f bool" Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/) [ghstack-poisoned]
Pull Request resolved: pytorch#57849 Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things. ghstack-source-id: 129567061 Differential Revision: [D28224476](https://our.internmc.facebook.com/intern/diff/D28224476/)
This pull request has been merged in f94f1db. |
Stack from ghstack:
Some methods are currently returning bool, but I'll soon want them to return a Future. I could have them return a tuple of bool and Future, but that's a bit heavy. Instead it turns out we can very easily make them return void, which will simplify things.
Differential Revision: D28224476