f35ac5443e5028bd677d844cb1e7d724c4d41900,examples/pytorch/gcn/gcn_spmv.py,GCN,forward,#GCN#Any#,62
Before Change
self.g.update_all(fn.copy_src(src="h", out="m"),
fn.sum(msg="m", out="h"),
layer)
return self.g.pop_n_repr("h")
def evaluate(model, features, labels, mask):
model.eval()
with torch.no_grad():
After Change
self.layers.append(GCNLayer(g, n_hidden, n_classes, None, dropout))
def forward(self, features):
h = features
for layer in self.layers:
h = layer(h)
return h
def evaluate(model, features, labels, mask):
model.eval()
with torch.no_grad():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: dmlc/dgl
Commit Name: f35ac5443e5028bd677d844cb1e7d724c4d41900
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn_spmv.py
Class Name: GCN
Method Name: forward
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 3c40fb8c1476e9f3e2acfbf9d6bbe56d3c1b0618
Time: 2019-07-04
Author: guillaume.klein@systrangroup.com
File Name: opennmt/tests/checkpoint_test.py
Class Name: _DummyModel
Method Name: call
Project Name: dmlc/dgl
Commit Name: cffa4034f580e33fe4295e9f1b54217e7fa724eb
Time: 2018-12-16
Author: zyhuang94@gmail.com
File Name: examples/pytorch/gcn/gcn.py
Class Name: GCN
Method Name: forward