-
Notifications
You must be signed in to change notification settings - Fork 70
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
core: add CallableOpInterface and use in interpreter #1166
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
- Coverage 88.62% 88.59% -0.03%
==========================================
Files 156 158 +2
Lines 22022 22083 +61
Branches 3307 3315 +8
==========================================
+ Hits 19516 19565 +49
- Misses 1975 1985 +10
- Partials 531 533 +2
☔ View full report in Codecov by Sentry. |
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.
I have a minor API disagreement, otherwise exciting, thanks!
if isinstance(op, str): | ||
name = op | ||
op = self.get_op_for_symbol(op) |
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.
I think it's a trap!
CallableOp is not SymbolOp. But I've always seen them used in pairs.. not sure what to do in the long run, but I would just restrict call_op to CallableOp here
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.
Seems like it should be ok, this function accepts ops that are not symbol ops
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.
Oh right, it's not the proper SymbolRefAttr fetching just yet.
I can leave with polishing later then 👍
Just the bare minimum in terms of functionality for now.