b9631912dbe8e10198e909f15d13370afca789ce,examples/pytorch/gcn/gcn_spmv.py,GCN,forward,#GCN#Any#,51

Before Change


        self.layers.append(NodeApplyModule(n_hidden, n_classes))

    def forward(self, features):
        self.g.set_n_repr(features)
        for layer in self.layers:
            // apply dropout
            if self.dropout:
                val = F.dropout(self.g.get_n_repr(), p=self.dropout)

After Change


        self.layers.append(NodeApplyModule(n_hidden, n_classes))

    def forward(self, features):
        self.g.set_n_repr({"h" : features})
        for layer in self.layers:
            // apply dropout
            if self.dropout:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: dmlc/dgl
Commit Name: b9631912dbe8e10198e909f15d13370afca789ce
Time: 2018-10-18
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn_spmv.py
Class Name: GCN
Method Name: forward


Project Name: dmlc/dgl
Commit Name: b9631912dbe8e10198e909f15d13370afca789ce
Time: 2018-10-18
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn.py
Class Name: GCN
Method Name: forward


Project Name: dmlc/dgl
Commit Name: 61fa3c6cf5441e6dd34e3d51e5f519308e5a1baf
Time: 2018-09-01
Author: minjie.wang@nyu.edu
File Name: tests/pytorch/test_specialization.py
Class Name:
Method Name: generate_graph


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: forward