42b0c38f81fe90de8f709133c2a5183ddff0d4d1,tests/compute/test_propagate.py,,test_prop_nodes_topo,#,47

Before Change


    tree.add_edge(2, 0)
    tree.add_edge(3, 2)
    tree.add_edge(4, 2)
    tree.register_message_func(mfunc)
    tree.register_reduce_func(rfunc)
    // init node feature data
    tree.ndata["x"] = F.zeros((5, 2))
    // set all leaf nodes to be ones
    tree.nodes[[1, 3, 4]].data["x"] = F.ones((3, 2))

After Change


    tree.add_edge(2, 0)
    tree.add_edge(3, 2)
    tree.add_edge(4, 2)
    tree = dgl.graph(tree.edges())
    // init node feature data
    tree.ndata["x"] = F.zeros((5, 2))
    // set all leaf nodes to be ones
    tree.nodes[[1, 3, 4]].data["x"] = F.ones((3, 2))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dmlc/dgl
Commit Name: 42b0c38f81fe90de8f709133c2a5183ddff0d4d1
Time: 2020-06-18
Author: classicxsong@gmail.com
File Name: tests/compute/test_propagate.py
Class Name:
Method Name: test_prop_nodes_topo


Project Name: dmlc/dgl
Commit Name: 42b0c38f81fe90de8f709133c2a5183ddff0d4d1
Time: 2020-06-18
Author: classicxsong@gmail.com
File Name: tests/compute/test_propagate.py
Class Name:
Method Name: test_prop_edges_dfs


Project Name: dmlc/dgl
Commit Name: 42b0c38f81fe90de8f709133c2a5183ddff0d4d1
Time: 2020-06-18
Author: classicxsong@gmail.com
File Name: tests/compute/test_propagate.py
Class Name:
Method Name: test_prop_nodes_bfs