Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to commit, many unit tests were implemented as assert tvm.ir.structural_equal(output, expected). While this is correct, it doesn't provide much information when the test fails. The tvm.ir.assert_structural_equal method performs the equivalent check, but displays the exact location where a mismatch occurs.

This commit replaces all use of assert tvm.ir.structural_equal with tvm.ir.assert_structural_equal.

Prior to commit, many unit tests were implemented as `assert
tvm.ir.structural_equal(output, expected)`.  While this is correct, it
doesn't provide much information when the test fails.  The
`tvm.ir.assert_structural_equal` method performs the equivalent check,
but displays the exact location where a mismatch occurs.

This commit replaces all use of `assert tvm.ir.structural_equal` with
`tvm.ir.assert_structural_equal`.
@Lunderberg Lunderberg merged commit 292ecfd into apache:main Jun 14, 2024
@Lunderberg Lunderberg deleted the unittest_assert_structural_equal branch June 14, 2024 20:16
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