junrushao1994 commented on a change in pull request #9111:
URL: https://github.com/apache/tvm/pull/9111#discussion_r717977724



##########
File path: python/tvm/meta_schedule/utils.py
##########
@@ -95,6 +95,17 @@ def get_global_func_with_default_on_worker(
         ) from error
 
 
+def get_global_func_on_rpc_session(session: RPCSession, name: str) -> 
PackedFunc:
+    try:
+        result = session.get_function(name)
+    except AttributeError as error:
+        raise AttributeError(
+            f'Unable to find function "{name}" on remote RPC server. '
+            "Please make sure USE_RANDOM is turned ON in the config.cmake on 
the RPC server."

Review comment:
       Yeah I copy the error message from Ansor actually. Would you like to 
suggest changes?




-- 
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]


Reply via email to