MCPcopy Index your code
hub / github.com/apache/tvm / connect

Method connect

jvm/core/src/main/java/org/apache/tvm/rpc/Client.java:34–41  ·  view source on GitHub ↗

Connect to RPC Server. @param url The url of the host. @param port The port to connect to. @param key Additional key to match server. @return The connected session.

(String url, int port, String key)

Source from the content-addressed store, hash-verified

32 * @return The connected session.
33 */
34 public static RPCSession connect(String url, int port, String key) {
35 Function doConnect = RPC.getApi("Connect");
36 if (doConnect == null) {
37 throw new RuntimeException("Please compile with USE_RPC=1");
38 }
39 TVMValue sess = doConnect.pushArg(url).pushArg(port).pushArg(key).invoke();
40 return new RPCSession(sess.asModule());
41 }
42
43 /**
44 * Connect to RPC Server.

Callers 15

test_addoneMethod · 0.95
test_strcatMethod · 0.95
runMethod · 0.45
connectToTrackerMethod · 0.45
connect_with_retryFunction · 0.45
_connect_proxy_loopFunction · 0.45
_stop_trackerMethod · 0.45
_update_trackerMethod · 0.45
checkFunction · 0.45
check_remoteFunction · 0.45

Calls 4

getApiMethod · 0.95
pushArgMethod · 0.95
asModuleMethod · 0.95
invokeMethod · 0.65

Tested by 15

test_addoneMethod · 0.76
test_strcatMethod · 0.76
checkFunction · 0.36
check_remoteFunction · 0.36
check_remoteFunction · 0.36
check_remoteFunction · 0.36
test_bigendian_rpcFunction · 0.36
test_rpc_simpleFunction · 0.36
test_rpc_runtime_stringFunction · 0.36
test_rpc_arrayFunction · 0.36