3f4645918db9298486dcd7190ba74bb3a8a84591,examples/pytorch/appnp/appnp.py,APPNP,forward,#APPNP#Any#,45

Before Change


    def forward(self, features):
        // prediction step
        h = features
        if self.dropout:
            h = self.dropout(h)
        h = self.activation(self.layers[0](h))
        for layer in self.layers[1:-1]:
            h = self.activation(layer(h))
        if self.dropout:

After Change


            h = self.activation(layer(h))
        h = self.layers[-1](self.feat_drop(h))
        // propagation step
        h = self.propagate(h)
        return h
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 3f4645918db9298486dcd7190ba74bb3a8a84591
Time: 2019-04-18
Author: aymenwaheb@gmail.com
File Name: examples/pytorch/appnp/appnp.py
Class Name: APPNP
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: 2d64684041ddaa57c8692d7ddc114a408fec3982
Time: 2019-06-14
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/sage_conv.py
Class Name: SAGEConv
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: 14fb6e1972270849d06f9eaad7aa9ec158d6308f
Time: 2020-07-01
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/pna_conv.py
Class Name: PNAConv
Method Name: forward