b133abb82e128bb091ffd1c299b427f3b3958cb3,examples/pytorch/dis_kvstore/server.py,,start_server,#Any#,25
Before Change
num_client=4,
ndata={"ndata":DATA[args.id]},
edata={"edata":DATA[args.id]},
ndata_g2l=ndata_g2l[args.id],
edata_g2l=edata_g2l[args.id])
After Change
my_server = KVServer(server_id=args.server_id, server_namebook=server_namebook, num_client=args.num_client)
if my_server.get_id() % my_server.get_group_count() == 0: // master server
my_server.set_global2local(name="entity_embed", global2local=g2l[my_server.get_machine_id()])
my_server.init_data(name="entity_embed", data_tensor=data[my_server.get_machine_id()])
else:
time.sleep(3)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: b133abb82e128bb091ffd1c299b427f3b3958cb3
Time: 2020-02-16
Author: mctt90@gmail.com
File Name: examples/pytorch/dis_kvstore/server.py
Class Name:
Method Name: start_server
Project Name: dmlc/dgl
Commit Name: d340ea3aa861a936430b9f37caafa2788bfae185
Time: 2020-08-11
Author: mctt90@gmail.com
File Name: python/dgl/distributed/kvstore.py
Class Name: KVServer
Method Name: __init__
Project Name: dmlc/dgl
Commit Name: b133abb82e128bb091ffd1c299b427f3b3958cb3
Time: 2020-02-16
Author: mctt90@gmail.com
File Name: examples/mxnet/dis_kvstore/server.py
Class Name:
Method Name: start_server