Skip to content

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
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…to prove equality (apache#17537)

* fixed assert by using analyzer to the prove equality

* updated docs in Analyzer class
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