-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Support Math keyword in native_functions.yaml. #44556
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
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit ff5d225 (more details on the Dr. CI page):
🕵️ 3 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
|
||
| // Ideally we want to test both forward and backward on math kernels but I | ||
| // haven't found an easy way to do it. Currently we only test forward here | ||
| // and rely on backward tests of each at:: function used in math kernels. |
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.
This is definitely something we should work on making easier, though I'm not exactly sure how. Perhaps APIs for supporting static runtime would make it easier, as they would make it possible to ask for a specific kernel.
Absent machinery like this, I think the easiest way to do this is to just make the math kernel available at another name (i.e., make a new native_functions.yaml entry; and then just do the testing from Python. Maybe @mruberry has some other ideas.
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.
Without too much context I'll also vote for (re)using Python.
[ghstack-poisoned]
[ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [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.
Looks good!
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
Differential Revision: [D23698386](https://our.internmc.facebook.com/intern/diff/D23698386) [ghstack-poisoned]
ghstack-source-id: 53cdaf9 Pull Request resolved: pytorch/pytorch#44556
Stack from ghstack:
Differential Revision: D23698386