Skip to content
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

unique node counting #338

Open
Flians opened this issue Nov 6, 2024 · 0 comments
Open

unique node counting #338

Flians opened this issue Nov 6, 2024 · 0 comments

Comments

@Flians
Copy link

Flians commented Nov 6, 2024

Hi, when I define egg::CostFunction, I want to count unique nodes.
But I met the following problem:
For (* (+ a b) (+ a b)), using AstSize will output that the node size is 3. But the results of two (+ a b) are the same and should be from the same node. So, I hope the node size is 2. Could you please tell me how to achieve it? Thank you.

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

No branches or pull requests

1 participant