You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/02/07 17:14:25 UTC
[GitHub] [tvm] AndrewZhaoLuo commented on a change in pull request #10176: resolve issue #10107 by setting eps larger
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org