AndrewZhaoLuo commented on a change in pull request #10176:
URL: https://github.com/apache/tvm/pull/10176#discussion_r800878803
##########
File path: tests/python/unittest/test_tir_schedule_sampling.py
##########
@@ -190,7 +190,7 @@ def test_sample_compute_location():
n_candidates = 8
expected_rate = 1.0 / n_candidates
for _, cnt in decision_dict.items():
- assert (expected_rate - 0.03) * n <= cnt <= (expected_rate + 0.03) * n
+ assert (expected_rate - 0.04) * n <= cnt <= (expected_rate + 0.04) * n
Review comment:
Can you jsut use numpy.testing.assert_allclose ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]