ddf8c858e17b69a6206750269232a1717cd1a348,examples/pytorch/dis_kvstore/client.py,,start_client,#Any#,35

Before Change



    my_client.barrier()

    my_client.push(name="entity_embed", id_tensor=ID[my_client.get_machine_id()], data_tensor=th.tensor([[0.,0.,0.],[0.,0.,0.]]))

    my_client.barrier()

    if my_client.get_id() % args.num_worker == 0:

After Change



    my_client.barrier()

    for i in range(100):
        my_client.push(name="entity_embed", id_tensor=ID[my_client.get_machine_id()], data_tensor=th.tensor([[0.,0.,0.],[0.,0.,0.]]))

    my_client.barrier()

    if my_client.get_id() % args.num_worker == 0:
        res = my_client.pull(name="entity_embed", id_tensor=th.tensor([0,1,2,3,4,5,6,7]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/dgl
Commit Name: ddf8c858e17b69a6206750269232a1717cd1a348
Time: 2020-02-22
Author: mctt90@gmail.com
File Name: examples/pytorch/dis_kvstore/client.py
Class Name:
Method Name: start_client


Project Name: aws/sagemaker-python-sdk
Commit Name: 920c07218c0d998710cc7e55680158b04145c66d
Time: 2019-12-16
Author: deepti.ragha@gmail.com
File Name: tests/integ/test_multidatamodel.py
Class Name:
Method Name: container_image


Project Name: dmlc/dgl
Commit Name: ddf8c858e17b69a6206750269232a1717cd1a348
Time: 2020-02-22
Author: mctt90@gmail.com
File Name: examples/mxnet/dis_kvstore/client.py
Class Name:
Method Name: start_client