Making ops c10 full: out overloads with default arguments#49012
Closed
smessmer wants to merge 21 commits intogh/smessmer/276/basefrom
Closed
Making ops c10 full: out overloads with default arguments#49012smessmer wants to merge 21 commits intogh/smessmer/276/basefrom
smessmer wants to merge 21 commits intogh/smessmer/276/basefrom
Conversation
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
This was referenced Dec 8, 2020
smessmer
added a commit
that referenced
this pull request
Dec 8, 2020
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) ghstack-source-id: 118080081 Pull Request resolved: #49012
This was referenced Dec 8, 2020
💊 CI failures summary and remediationsAs of commit b544e0d (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:
|
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
ezyang
reviewed
Dec 8, 2020
tools/codegen/gen.py
Outdated
| # TODO We should consider if we just want to remove | ||
| # default arguments from all at::native functions | ||
| # but that would be a larger change because we need | ||
| # to change a lot of call sites |
Contributor
There was a problem hiding this comment.
In particular, direct native:: calls rely on the defaulting quite a bit.
ezyang
approved these changes
Dec 8, 2020
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
bhosmer
approved these changes
Dec 9, 2020
bhosmer
left a comment
There was a problem hiding this comment.
Accepting to unblock, but if I'm right re the inline comment we should really change that before landing
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
This was referenced Dec 9, 2020
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
This was referenced Dec 10, 2020
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
This was referenced Dec 11, 2020
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
For some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments, we couldn't move the out argument to the end because of those default arguments preceding it. This PR fixes that and makes out overloads with default arguments c10-full Differential Revision: [D25394605](https://our.internmc.facebook.com/intern/diff/D25394605/) [ghstack-poisoned]
Contributor
|
This pull request has been merged in a6274c1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
use_c10_dispatcher: fulllines #49259 Removeuse_c10_dispatcher: fulllinesFor some reason we apply default arguments to the functions in at::native too. So when an out overload had default arguments,
we couldn't move the out argument to the end because of those default arguments preceding it.
This PR fixes that and makes out overloads with default arguments c10-full
Differential Revision: D25394605