Skip to content

Conversation

@kajalpatelinfo
Copy link
Contributor

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.

@kajalpatelinfo kajalpatelinfo marked this pull request as ready for review June 25, 2024 02:49
@kajalpatelinfo
Copy link
Contributor Author

@majosm Please review when convenient!

Copy link
Collaborator

@majosm majosm left a 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.

@inducer
Copy link
Owner

inducer commented Jul 18, 2024

@majosm and I discussed this, and we agreed that we'd prefer to merge this and #507 in one go, so I'll go ahead and close #507.

Could you look at the test and linter failures?

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.

@kajalpatelinfo
Copy link
Contributor Author

Sounds good, I'll fix those errors today. Thank you!

@kajalpatelinfo kajalpatelinfo requested a review from majosm July 22, 2024 21:32
Copy link
Collaborator

@majosm majosm left a 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.

Copy link
Collaborator

@majosm majosm left a comment

Choose a reason for hiding this comment

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

👍

@majosm majosm requested a review from inducer July 26, 2024 19:45
@majosm
Copy link
Collaborator

majosm commented Jul 26, 2024

How's this look @inducer?

Copy link
Owner

@inducer inducer left a 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(
Copy link
Owner

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)

@kajalpatelinfo kajalpatelinfo requested review from inducer and majosm July 31, 2024 01:59
Copy link
Owner

@inducer inducer left a 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.

@inducer inducer merged commit 86733af into inducer:main Aug 1, 2024
@inducer
Copy link
Owner

inducer commented Aug 1, 2024

Thanks!

@kajalpatelinfo kajalpatelinfo deleted the duplicate_node_counts branch August 14, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants