tkonolige commented on a change in pull request #9615:
URL: https://github.com/apache/tvm/pull/9615#discussion_r761385731
##########
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:
Do we want to silently eat any error? For example, this will prevent
Ctrl-C from working. It might be better to check for TVMError
--
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]