tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tqc...@apache.org
Subject [incubator-tvm] branch master updated: Fix the runtime raise error (#5586)
Date Wed, 13 May 2020 15:49:29 GMT
This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new b1eb97a  Fix the runtime raise error (#5586)
b1eb97a is described below

commit b1eb97ac1a073145728379824c6b0ec207ca3626
Author: LiangLiu <liangliu@buaa.edu.cn>
AuthorDate: Wed May 13 23:49:21 2020 +0800

    Fix the runtime raise error (#5586)
---
 python/tvm/autotvm/measure/measure_methods.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/python/tvm/autotvm/measure/measure_methods.py b/python/tvm/autotvm/measure/measure_methods.py
index 185ed7d..8f11a17 100644
--- a/python/tvm/autotvm/measure/measure_methods.py
+++ b/python/tvm/autotvm/measure/measure_methods.py
@@ -275,9 +275,8 @@ class RPCRunner(Runner):
                 if isinstance(res, Exception):   # executor error or timeout
                     results.append(MeasureResult((str(res),), MeasureErrorNo.RUN_TIMEOUT,
                                                  self.timeout, time.time()))
-                    raise Exception(f'encountered exception during measurement: {results}')
-
-                results.append(res)
+                else:
+                    results.append(res)
 
         return results
 


Mime
View raw message