You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/01/15 00:36:47 UTC

[GitHub] [tvm] tkonolige commented on a change in pull request #9901: [FIX,AUTOTVM] Add backtraces to tuning errors

tkonolige commented on a change in pull request #9901:
URL: https://github.com/apache/tvm/pull/9901#discussion_r785242355



##########
File path: python/tvm/autotvm/measure/measure_methods.py
##########
@@ -150,33 +151,51 @@ def build(self, measure_inputs):
                             )
 
                         else:
-                            if "InstantiationError" in str(res.error):
-                                msg = str(res.error)
+                            tb, exception = res.error

Review comment:
       For `BuildResult` we need to maintain the backtrace separately so that we can check for it here. And I think we should make `MeasureResult` and `BuildResult` have the same structure for errors because it is less confusing. Now tuner.py concatenates the error with the traceback.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org