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

Function test_rpc_file_exchange

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

Source from the content-addressed store, hash-verified

216
217@pytest.mark.skipif(not env.has_rpc(), reason="need rpc")
218def test_rpc_file_exchange():
219 server = rpc.Server()
220 remote = rpc.connect("127.0.0.1", server.port)
221
222 def check_remote():
223 blob = bytearray(np.random.randint(0, 10, size=(10)))
224 remote.upload(blob, "dat.bin")
225 rev = remote.download("dat.bin")
226 assert rev == blob
227
228 check_remote()
229
230
231@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…