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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]