MCPcopy
hub / github.com/dmlc/dgl / prepare_dist

Function prepare_dist

tests/python/pytorch/distributed/optim/test_dist_optim.py:66–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def prepare_dist():
67 ip_config = open("optim_ip_config.txt", "w")
68 ip_addr = get_local_usable_addr()
69 ip_config.write("{}\n".format(ip_addr))
70 ip_config.close()
71
72
73def run_server(graph_name, server_id, server_count, num_clients, shared_mem):

Callers 1

check_sparse_adamFunction · 0.70

Calls 4

formatMethod · 0.80
get_local_usable_addrFunction · 0.70
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected