-
Notifications
You must be signed in to change notification settings - Fork 609
Add a new python script to auto-generate ATen op ODS definitions. #43
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
stellaraccident
commented
Sep 16, 2020
- There is still some work on some of the ops to annotate correct types.
- The ODS is not actually included into the dialect yet, but I'd like to commit it so that we can track changes.
- Will reconcile this with the ops produced by the existing script in a followup. I can either attempt to do that in one step or simply include these into the dialect for now and transition all of it over the course of several commits (they do not have colliding names). I'm leaning towards the latter.
* There is still some work on some of the ops to annotate correct types. * The ODS is not actually included into the dialect yet, but I'd like to commit it so that we can track changes. * Will reconcile this with the ops produced by the existing script in a followup. I can either attempt to do that in one step or simply include these into the dialect for now and transition all of it over the course of several commits (they do not have colliding names). I'm leaning towards the latter.
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.
Looking good. Left some ideas for improvements.
| ATenAnyRefTensor:$out | ||
| ); | ||
| let results = (outs | ||
| ATenAnyRefTensor:$result |
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.
is it intentional that this returns a ref? I would expect either an out param or a result, but not both.
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.
Good catch, thanks. The Python API does indeed return the out ref but there is no reason for these ops to be structured that way.
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.
minor nits.
Re-enable Reciprocal tests.
* Fix a bug in createArrayAttribute * Use size_t * Use const auto&