bc9da61d8c8c2df4c3a31dad92d44ace8dc1c4c5,test/data/test_sampler.py,,test_cora,#,50

Before Change


    out_all = model.forward_all(data.x, data.edge_index)
    print(out_all[0])

    for data_flow in loader(torch.tensor([0])):
        x = data.x[data_flow[0].n_id]
        out = model.forward_batch(x, data_flow)[data_flow.batched_n_id]
        print(out[0])

After Change


        out = model(x, subdata.edge_index)[subdata.sub_b_id]
        assert torch.allclose(out_all[subdata.b_id], out)

    shutil.rmtree(root)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: bc9da61d8c8c2df4c3a31dad92d44ace8dc1c4c5
Time: 2019-07-09
Author: matthias.fey@tu-dortmund.de
File Name: test/data/test_sampler.py
Class Name:
Method Name: test_cora


Project Name: philipperemy/deep-speaker
Commit Name: 20c399028672a7beb92cabcd580265fbe057c5eb
Time: 2018-09-15
Author: premy@cogent.co.jp
File Name: v2/audio/generate_all_cache.py
Class Name:
Method Name: main


Project Name: ray-project/ray
Commit Name: d6f84bb0721516184b596b4281c2d31355a48dbf
Time: 2020-06-27
Author: sven@anyscale.io
File Name: python/ray/setup-dev.py
Class Name:
Method Name: do_link