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

Function exist_address

tests/python/runtime/test_runtime_rpc.py:499–506  ·  view source on GitHub ↗
(summary, key, host, port)

Source from the content-addressed store, hash-verified

497 client = rpc.connect_tracker("127.0.0.1", tracker.port)
498
499 def exist_address(summary, key, host, port):
500 server_info = summary["server_info"]
501 for device in server_info:
502 if device["key"] == f"server:{key}":
503 addr = device["addr"]
504 if (host is None or host == addr[0]) and port == addr[1]:
505 return True
506 return False
507
508 summary = client.summary()
509 assert summary["queue_info"][device_key]["free"] == 2

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…