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 2021/12/06 19:28:20 UTC

[GitHub] [tvm] AndrewZhaoLuo commented on a change in pull request #9615: [EZ][Autoscheduler] Log exceptions in topi lowering

AndrewZhaoLuo commented on a change in pull request #9615:
URL: https://github.com/apache/tvm/pull/9615#discussion_r763315546



##########
File path: python/tvm/auto_scheduler/relay_integration.py
##########
@@ -66,9 +67,12 @@ def call_all_topi_funcs(mod, params, target, opt_level=3):
         if params:
             compiler.set_params(params)
         mod = tvm.IRModule.from_expr(mod) if isinstance(mod, relay.Function) else mod
-        compiler.lower(mod, target)
-
-    autotvm.GLOBAL_SCOPE.silent = old_autotvm_silent
+        try:
+            compiler.lower(mod, target)
+        except Exception: # pylint: disable=broad-except

Review comment:
       Ah, I thought the ffi ate the type of all exceptions. I see other usages of using TVMError and it works this way so is preferable.




-- 
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