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

Function main

python/tvm/exec/rpc_server.py:26–55  ·  view source on GitHub ↗

Main function Parameters ---------- args : argparse.Namespace parsed args from command-line invocation

(args)

Source from the content-addressed store, hash-verified

24
25
26def main(args):
27 """Main function
28
29 Parameters
30 ----------
31 args : argparse.Namespace
32 parsed args from command-line invocation
33 """
34 if args.tracker:
35 url, port = args.tracker.rsplit(":", 1)
36 port = int(port)
37 tracker_addr = (url, port)
38 if not args.key:
39 raise RuntimeError("Need key to present type of resource when tracker is available")
40 else:
41 tracker_addr = None
42
43 server = rpc.Server(
44 args.host,
45 args.port,
46 args.port_end,
47 is_proxy=args.through_proxy,
48 key=args.key,
49 tracker_addr=tracker_addr,
50 load_library=args.load_library,
51 custom_addr=args.custom_addr,
52 silent=args.silent,
53 no_fork=not args.fork,
54 )
55 server.proc.join()
56
57
58if __name__ == "__main__":

Callers 1

rpc_server.pyFile · 0.70

Calls 2

ServerMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…