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/02/23 01:58:25 UTC

[GitHub] [tvm] comaniac commented on a change in pull request #7337: Introduce code_loader to AutoTVM.

comaniac commented on a change in pull request #7337:
URL: https://github.com/apache/tvm/pull/7337#discussion_r580717702



##########
File path: python/tvm/autotvm/measure/measure_methods.py
##########
@@ -473,15 +486,21 @@ def __call__(self, measure_input, tmp_dir, **kwargs):
         return BuildResult(filename, arg_info, None, time.time() - tic)
 
 
+CodeLoader = typing.Callable[
+    [dict, dict], typing.ContextManager[typing.Tuple[tvm.rpc.RPCSession, tvm.runtime.Module]]
+]
+
+
 def run_through_rpc(
     measure_input,
     build_result,
     number,
     repeat,
     min_repeat_ms,
     cooldown_interval,
-    remote_args,
+    remote_kw,

Review comment:
       Better to use full name `remote_kwargs`?




----------------------------------------------------------------
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:
users@infra.apache.org