cbalint13 commented on code in PR #18384:
URL: https://github.com/apache/tvm/pull/18384#discussion_r2448746261
##########
python/tvm/meta_schedule/tune_context.py:
##########
@@ -53,9 +53,8 @@ def _normalize_mod(mod: Union[PrimFunc, IRModule]) ->
IRModule:
if not isinstance(mod, IRModule):
raise TypeError(f"Expected `mod` to be PrimFunc or IRModule, but gets:
{mod}")
func_names = mod.get_global_vars()
- (func_name,) = func_names
Review Comment:
This (old) unpacking style required one single value, otherwise crash.
LGTM !
--
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]