-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add duplicate node counter functionality and tests #508
Conversation
@majosm Please review when convenient! |
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.
Took a quick glance through this; looks good so far! I'll give it a closer look once #507 gets merged.
Sounds good, I'll fix those errors today. Thank you! |
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.
Mostly looks good, just some suggestions for doc stuff and a couple of the tests.
FYI there will likely be some type annotations to fix up now that #527 has gone in.
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.
👍
How's this look @inducer? |
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.
Thanks! Almost looks good, not far now. 👍
return ncm.expr_type_counts | ||
|
||
|
||
def get_num_nodes( |
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 breaks compatibility (= True
would retain compatibility).
Maybe deprecate not specifying the argument. (@majosm can explain)
Co-authored-by: Andreas Klöckner <[email protected]>
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.
Thanks! One and a half more wrinkles, and this should be ready to go.
Co-authored-by: Andreas Klöckner <[email protected]>
Thanks! |
Building off #507.
This PR builds off #507 by adding functionality and tests to count duplicates however many times they appear in the DAG. The default functionality is to not count duplicates.