comaniac commented on a change in pull request #4338: AutoTVM: selecting tuning
templates when extracting task
URL: https://github.com/apache/incubator-tvm/pull/4338#discussion_r346710057
##########
File path: python/tvm/autotvm/task/relay_integration.py
##########
@@ -153,15 +154,25 @@ def extract_from_multiple_program(funcs, params, ops,
target, target_host=None,
logger.disabled = old_state
+ # convert *topi op to template key* map to *task name to template key* map
+ task_keys = dict()
+ for op in list(template_keys.keys()):
Review comment:
Do we need `list()`? It seems to me that `for op in template_key.keys()` is
sufficient.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services