Skip to content

Making ops c10 full: out overloads with default arguments#49012

Closed
smessmer wants to merge 21 commits intogh/smessmer/276/basefrom
gh/smessmer/276/head
Closed

Making ops c10 full: out overloads with default arguments#49012
smessmer wants to merge 21 commits intogh/smessmer/276/basefrom
gh/smessmer/276/head

Conversation

@smessmer
Copy link
Copy Markdown
Contributor

@smessmer smessmer commented Dec 8, 2020

Stack from ghstack:

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

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]
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
@dr-ci
Copy link
Copy Markdown

dr-ci bot commented Dec 8, 2020

💊 CI failures summary and remediations

As of commit b544e0d (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_build (1/1)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

Dec 15 18:45:41 Failed to generate ATEN bindings: ['/var/lib/jenkins/workspace/xla/scripts/generate_code.sh']
Dec 15 18:45:40 AtenXlaType function missed override: std::tuple<Tensor&, Tensor&> min_out(Tensor& min, Tensor& min_indices, const Tensor& self, int64_t dim, bool keepdim); // min_out(Tensor,Tensor,Tensor,int64_t,bool)->std::tuple<Tensor,Tensor>
Dec 15 18:45:40 Traceback (most recent call last):
Dec 15 18:45:40   File "/var/lib/jenkins/workspace/xla/scripts/gen.py", line 1172, in <module>
Dec 15 18:45:40     generate(args)
Dec 15 18:45:40   File "/var/lib/jenkins/workspace/xla/scripts/gen.py", line 1142, in generate
Dec 15 18:45:40     assert check_overrides(overrides, overridden)
Dec 15 18:45:40 AssertionError
Dec 15 18:45:41 Building torch_xla version: 1.6
Dec 15 18:45:41 XLA Commit ID: fe89172b2bd1c9a1c104bd2cbe565f30e6c8e328
Dec 15 18:45:41 PyTorch Commit ID: 124695e35e275d550c6941be6511e2e9442cc6f4
Dec 15 18:45:41 Failed to generate ATEN bindings: ['/var/lib/jenkins/workspace/xla/scripts/generate_code.sh']
Dec 15 18:45:41 =================== sccache compilation log ===================
Dec 15 18:45:41 + cleanup
Dec 15 18:45:41 + retcode=1
Dec 15 18:45:41 + set +x
Dec 15 18:45:41 =========== If your build fails, please take a look at the log above for possible reasons ===========
Dec 15 18:45:41 Compile requests                    4562
Dec 15 18:45:41 Compile requests executed           4268
Dec 15 18:45:41 Cache hits                          2969
Dec 15 18:45:41 Cache hits (C/C++)                  2969
Dec 15 18:45:41 Cache misses                        1281

XLA failure

Job pytorch_xla_linux_bionic_py3_6_clang9_build is failing. Please create an issue with title prefixed by [PT_BREAK] in pytorch/xla and link to to this PR. If you have questions, please reach out to @ailzhang / @dlibenzi / @JackCaoG.

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.

This comment has been revised 92 times.

@smessmer smessmer requested review from bhosmer and ezyang December 8, 2020 13:44
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]
# 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In particular, direct native:: calls rely on the defaulting quite a bit.

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]
Copy link
Copy Markdown

@bhosmer bhosmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]
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]
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]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in a6274c1.

@facebook-github-bot facebook-github-bot deleted the gh/smessmer/276/head branch December 19, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants