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

Function check_remote

tests/python/runtime/test_runtime_rpc.py:105–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 client = rpc.connect("127.0.0.1", server.port, key="x1")
104
105 def check_remote():
106 f1 = client.get_function("rpc.test.addone")
107 assert f1(10) == 11
108 f3 = client.get_function("rpc.test.except")
109
110 with pytest.raises(RuntimeError):
111 f3("abc")
112
113 f2 = client.get_function("rpc.test.strcat")
114 assert f2("abc", 11) == "abc:11"
115
116 check_remote()
117

Callers 9

test_rpc_simpleFunction · 0.70
test_rpc_runtime_stringFunction · 0.70
test_rpc_arrayFunction · 0.70
test_rpc_large_arrayFunction · 0.70
test_rpc_file_exchangeFunction · 0.70
test_rpc_remote_moduleFunction · 0.70
test_rpc_return_funcFunction · 0.70
test_local_funcFunction · 0.70

Calls 15

strFunction · 0.85
printFunction · 0.85
onesMethod · 0.80
numpyMethod · 0.80
relpathMethod · 0.80
uniformMethod · 0.80
ServerMethod · 0.80
checkFunction · 0.70
writeMethod · 0.65
funcFunction · 0.50
get_functionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…