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

Function test_rpc_runtime_string

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

Source from the content-addressed store, hash-verified

118
119@pytest.mark.skipif(not env.has_rpc(), reason="need rpc")
120def test_rpc_runtime_string():
121 server = rpc.Server(key="x1")
122 client = rpc.connect("127.0.0.1", server.port, key="x1")
123
124 def check_remote():
125 func = client.get_function("rpc.test.runtime_str_concat")
126 x = tvm_ffi.core.String("abc")
127 y = tvm_ffi.core.String("def")
128 assert str(func(x, y)) == "abcdef"
129
130 check_remote()
131
132
133@pytest.mark.skipif(not env.has_rpc(), reason="need rpc")

Callers

nothing calls this directly

Calls 3

ServerMethod · 0.80
check_remoteFunction · 0.70
connectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…