From a1dc1e6ea83bf70ca4272793961a80a600e07976 Mon Sep 17 00:00:00 2001 From: LiangLiu Date: Wed, 13 May 2020 23:49:21 +0800 Subject: [PATCH] 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 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