From 419dcef7062990c1f3f631cf03f7bcb1fdb0fac3 Mon Sep 17 00:00:00 2001 From: liuliang Date: Wed, 13 May 2020 17:23:11 +0800 Subject: [PATCH] Fix the runtime raise error --- 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 185ed7d05019..8f11a17920b4 100644 --- a/python/tvm/autotvm/measure/measure_methods.py +++ b/python/tvm/autotvm/measure/measure_methods.py @@ -275,9 +275,8 @@ def run(self, measure_inputs, build_results): 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