Skip to content

Commit

Permalink
Fix the runtime raise error (apache#5586)
Browse files Browse the repository at this point in the history
  • Loading branch information
huochaitiantang authored and trevor-m committed Jun 18, 2020
1 parent 3466d9e commit bf279dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/tvm/autotvm/measure/measure_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bf279dc

Please sign in to comment.