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

[FIX][topi.scatter_nd] fixed shape equality assert by using analyzer to prove equality #17537

Merged

Conversation

PatrikPerssonInceptron
Copy link
Contributor

The following assert in the _verify_scatter_nd_inputs function could fail if the shapes contain prim expressions: assert indices.shape[i + 1] == updates.shape[i]. I updated it to analyzer.can_prove_equal(indices.shape[i + 1], updates.shape[i]) using the arithmetic analyzer instead.

@PatrikPerssonInceptron PatrikPerssonInceptron changed the title [FIX][topi.scatter_nd] fixed shape equality assert by using analyzer to the prove equality [FIX][topi.scatter_nd] fixed shape equality assert by using analyzer to prove equality Nov 19, 2024
@tqchen tqchen merged commit db6d205 into apache:main Nov 22, 2024
14 checks passed
@PatrikPerssonInceptron PatrikPerssonInceptron deleted the fix/_verify_scatter_nd_inputs branch November 25, 2024 08:42
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.

2 participants