dd65ee211ea5ec1c876d323c4387f066bee41a77,tests/compute/test_sampler.py,,_test_layer_sampler,#Any#,111

Before Change



            block_parent_eid = sub_g.block_parent_eid(i)
            block_parent_src = src[block_parent_eid]
            block_parent_dst = dst[block_parent_eid]

            assert np.all(F.asnumpy(block_src == block_parent_src))

        n_layers = sub_g.num_layers

After Change


            block_dst = sub_g.map_to_parent_nid(F.gather_row(sub_dst, block_eid))

            block_parent_eid = sub_g.block_parent_eid(i)
            block_parent_src = F.gather_row(src, block_parent_eid)
            block_parent_dst = F.gather_row(dst, block_parent_eid)

            assert np.all(F.asnumpy(block_src == block_parent_src))

        n_layers = sub_g.num_layers
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: dd65ee211ea5ec1c876d323c4387f066bee41a77
Time: 2019-12-15
Author: VoVAllen@users.noreply.github.com
File Name: tests/compute/test_sampler.py
Class Name:
Method Name: _test_layer_sampler


Project Name: dmlc/dgl
Commit Name: dd65ee211ea5ec1c876d323c4387f066bee41a77
Time: 2019-12-15
Author: VoVAllen@users.noreply.github.com
File Name: tests/compute/test_sampler.py
Class Name:
Method Name: check_negative_sampler


Project Name: dmlc/dgl
Commit Name: 96984faca42c70440de09b0d8db5ab5ede73a5ca
Time: 2020-05-14
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/dist_graph.py
Class Name: DistGraphServer
Method Name: __init__


Project Name: dmlc/dgl
Commit Name: dd65ee211ea5ec1c876d323c4387f066bee41a77
Time: 2019-12-15
Author: VoVAllen@users.noreply.github.com
File Name: tests/compute/test_sampler.py
Class Name:
Method Name: _test_layer_sampler


Project Name: dmlc/dgl
Commit Name: dd65ee211ea5ec1c876d323c4387f066bee41a77
Time: 2019-12-15
Author: VoVAllen@users.noreply.github.com
File Name: tests/compute/test_graph_index.py
Class Name:
Method Name: sort_edges


Project Name: dmlc/dgl
Commit Name: d30a69bf277effd9a013ddd81fa33661f2e31a01
Time: 2019-12-19
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/runtime/spmv.py
Class Name:
Method Name: build_gidx_and_mapping_uv


Project Name: dmlc/dgl
Commit Name: 25ac33440334fd2fdfe3fe4e4dd3dd1428601a47
Time: 2021-01-24
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/graph_services.py
Class Name:
Method Name: _sample_neighbors