ca48787ae49e9d73ebf17b1c882cb66fb66fb828,tutorials/models/1_gnn/1_gcn.py,,load_cora_data,#,104

Before Change


    features = th.FloatTensor(data.features)
    labels = th.LongTensor(data.labels)
    mask = th.ByteTensor(data.train_mask)
    g = DGLGraph(data.graph)
    return g, features, labels, mask

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

After Change


    g = data.graph
    // add self loop
    g.remove_edges_from(g.selfloop_edges())
    g = DGLGraph(g)
    g.add_edges(g.nodes(), g.nodes())
    return g, features, labels, mask

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: dmlc/dgl
Commit Name: ca48787ae49e9d73ebf17b1c882cb66fb66fb828
Time: 2019-04-23
Author: 1339754545@qq.com
File Name: tutorials/models/1_gnn/1_gcn.py
Class Name:
Method Name: load_cora_data


Project Name: dmlc/dgl
Commit Name: ca48787ae49e9d73ebf17b1c882cb66fb66fb828
Time: 2019-04-23
Author: 1339754545@qq.com
File Name: tutorials/models/1_gnn/1_gcn.py
Class Name:
Method Name: load_cora_data


Project Name: dmlc/dgl
Commit Name: 2cdc4d3c1d17e1ac8be1c44ca54d772084c76f18
Time: 2020-03-21
Author: wmjlyjemaine@gmail.com
File Name: tutorials/models/1_gnn/1_gcn.py
Class Name:
Method Name: load_cora_data


Project Name: dmlc/dgl
Commit Name: ca48787ae49e9d73ebf17b1c882cb66fb66fb828
Time: 2019-04-23
Author: 1339754545@qq.com
File Name: tutorials/models/1_gnn/9_gat.py
Class Name:
Method Name: load_cora_data


Project Name: dmlc/dgl
Commit Name: 2cdc4d3c1d17e1ac8be1c44ca54d772084c76f18
Time: 2020-03-21
Author: wmjlyjemaine@gmail.com
File Name: tutorials/models/1_gnn/9_gat.py
Class Name:
Method Name: load_cora_data