3e76bcc0528e2cd1584837162b3f286048fcd7ea,tests/pytorch/test_basics.py,,test_pull_0deg,#,224

Before Change


    old_repr = th.randn(2, 5)
    g.set_n_repr(old_repr)
    g.pull([0, 1], _message, _reduce)
    new_repr = g.get_n_repr()
    assert th.allclose(new_repr[0], old_repr[0])
    assert th.allclose(new_repr[1], old_repr[0])

def _disabled_test_send_twice():

After Change


    old_repr = th.randn(2, 5)
    g.set_n_repr({"h" : old_repr})
    g.pull([0, 1], _message, _reduce)
    new_repr = g.get_n_repr()["h"]
    assert th.allclose(new_repr[0], old_repr[0])
    assert th.allclose(new_repr[1], old_repr[0])

def _disabled_test_send_twice():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 3e76bcc0528e2cd1584837162b3f286048fcd7ea
Time: 2018-10-18
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_basics.py
Class Name:
Method Name: test_pull_0deg


Project Name: dmlc/dgl
Commit Name: 3e76bcc0528e2cd1584837162b3f286048fcd7ea
Time: 2018-10-18
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_basics.py
Class Name:
Method Name: test_reduce_0deg


Project Name: dmlc/dgl
Commit Name: b420a5b5b3a617b82dcb1884741351c5641b9a86
Time: 2018-11-04
Author: yg1246@nyu.edu
File Name: examples/pytorch/line_graph/gnn.py
Class Name: GNNModule
Method Name: aggregate


Project Name: dmlc/dgl
Commit Name: 0d6cd30be38de80ee17d7fc3934b1b6db947e769
Time: 2018-10-26
Author: zhengda1936@gmail.com
File Name: tests/mxnet/test_basics.py
Class Name:
Method Name: test_reduce_0deg


Project Name: dmlc/dgl
Commit Name: 0d6cd30be38de80ee17d7fc3934b1b6db947e769
Time: 2018-10-26
Author: zhengda1936@gmail.com
File Name: tests/mxnet/test_basics.py
Class Name:
Method Name: test_pull_0deg


Project Name: dmlc/dgl
Commit Name: 3e76bcc0528e2cd1584837162b3f286048fcd7ea
Time: 2018-10-18
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_batched_graph.py
Class Name:
Method Name: test_batch_unbatch