This is an automated email from the ASF dual-hosted git repository.

masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new c11959d  [FIX] Remove leftovers from check_correctness (#7272)
c11959d is described below

commit c11959d3395e850e43a04427b4e4ba203dd2e647
Author: Tristan Konolige <[email protected]>
AuthorDate: Wed Jan 13 21:02:35 2021 -0800

    [FIX] Remove leftovers from check_correctness (#7272)
    
    * [FIX] Remove leftovers from check_correctness
    
    * remove unused numpy import
---
 python/tvm/autotvm/measure/measure_methods.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/python/tvm/autotvm/measure/measure_methods.py 
b/python/tvm/autotvm/measure/measure_methods.py
index f6f0e42..cb801ba 100644
--- a/python/tvm/autotvm/measure/measure_methods.py
+++ b/python/tvm/autotvm/measure/measure_methods.py
@@ -31,8 +31,6 @@ from random import getrandbits
 from collections import namedtuple
 import tempfile
 
-import numpy as np
-
 import tvm._ffi
 import tvm.ir.transform
 from tvm import nd, rpc as _rpc
@@ -578,13 +576,6 @@ def run_through_rpc(
             costs = list(costs)
             costs.sort()
             costs = tuple(costs[1:-1])
-
-        # check correctness of output
-        if ref_output:
-            for expected, real in zip(ref_output, args):
-                if not np.allclose(expected, real.asnumpy(), rtol=1e-4):
-                    logger.warning("Wrong Answer!")
-                    errno = MeasureErrorNo.WRONG_ANSWER
     except TVMError as exc:
         msg = str(exc)
         if "Stack trace returned" in msg:

Reply via email to