cf1cc19bb79ae4128ef5437279de475835374a46,benchmark/runtime/dgl/rgcn.py,BaseRGCN,forward,#BaseRGCN#Any#,182

Before Change


    def forward(self, g):
        if self.features is not None:
            g.ndata["id"] = self.features
        for layer in self.layers:
            layer(g)
        return g.ndata.pop("h")


class EntityClassify(BaseRGCN):

After Change


        self.conv2 = RGCNConv(g, 16, out_channels, num_relations, num_bases=30)

    def forward(self, x):
        x = F.relu(self.conv1(None))
        x = self.conv2(x)
        return F.log_softmax(x, dim=1)


class RGCNSPMVConv(torch.nn.Module):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: cf1cc19bb79ae4128ef5437279de475835374a46
Time: 2019-03-19
Author: matthias.fey@tu-dortmund.de
File Name: benchmark/runtime/dgl/rgcn.py
Class Name: BaseRGCN
Method Name: forward


Project Name: chainer/chainerrl
Commit Name: c5f155ad65520d229470377acb7a0014600a9388
Time: 2017-05-28
Author: kataoka@preferred.jp
File Name: chainerrl/links/mlp.py
Class Name: MLP
Method Name: __call__


Project Name: dmlc/dgl
Commit Name: 2cdc4d3c1d17e1ac8be1c44ca54d772084c76f18
Time: 2020-03-21
Author: wmjlyjemaine@gmail.com
File Name: tutorials/basics/4_batch.py
Class Name: Classifier
Method Name: forward