e8a56dc1b65f5ff230d2651eaf64a179638ed836,python/dgl/distributed/kvstore.py,PushRequest,process_request,#PushRequest#Any#,94

Before Change



    def process_request(self, server_state):
        kv_store = server_state.kv_store
        if kv_store.part_policy.__contains__(self.name) is False:
            raise RuntimeError("KVServer cannot find partition policy with name: %s" % self.name)
        if kv_store.data_store.__contains__(self.name) is False:
            raise RuntimeError("KVServer Cannot find data tensor with name: %s" % self.name)
        local_id = kv_store.part_policy[self.name].to_local(self.id_tensor)

After Change


        kv_store = server_state.kv_store
        if self.name not in kv_store.part_policy:
            raise RuntimeError("KVServer cannot find partition policy with name: %s" % self.name)
        if self.name not in kv_store.data_store:
            raise RuntimeError("KVServer Cannot find data tensor with name: %s" % self.name)
        local_id = kv_store.part_policy[self.name].to_local(self.id_tensor)
        kv_store.push_handlers[self.name](kv_store.data_store, self.name,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/dgl
Commit Name: e8a56dc1b65f5ff230d2651eaf64a179638ed836
Time: 2020-06-15
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/kvstore.py
Class Name: PushRequest
Method Name: process_request


Project Name: dmlc/dgl
Commit Name: afb7f5b83917b157ccc0b5875904c3d2ca05aa1d
Time: 2020-07-06
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/kvstore.py
Class Name: GetPartShapeRequest
Method Name: process_request


Project Name: dmlc/dgl
Commit Name: e8a56dc1b65f5ff230d2651eaf64a179638ed836
Time: 2020-06-15
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/kvstore.py
Class Name: PullRequest
Method Name: process_request