14fb6e1972270849d06f9eaad7aa9ec158d6308f,torch_geometric/nn/conv/pna_conv.py,PNAConv,forward,#PNAConv#Any#Any#Any#,223
Before Change
self.mixing_network = FCLayer(self.out_channels, self.out_channels, activation=activation.LeakyReLU())
def forward(self, x, edge_index, edge_attr):
return self.propagate(edge_index, x=x, edge_attr=self.edge_encoder(edge_attr) if self.edge_features else None)
def message(self, x_i, x_j, edge_attr):
if self.divide_input:
// divide the features among the towers
After Change
x = x.view(-1, 1, self.F_in).repeat(1, self.towers, 1)
// propagate_type: (x: Tensor, edge_attr: OptTensor)
out = self.propagate(edge_index, x=x, edge_attr=edge_attr, size=None)
out = torch.cat([x, out], dim=-1)
outs = [nn(out[:, i]) for i, nn in enumerate(self.post_nns)]
out = torch.cat(outs, dim=1)
return self.lin(out)
def message(self, x_i: Tensor, x_j: Tensor,
edge_attr: OptTensor) -> Tensor:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
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
Project Name: rusty1s/pytorch_geometric
Commit Name: 6503eb6ed7e37b65aabf0dd7bcc23e7bbb293dd7
Time: 2019-07-29
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/tag_conv.py
Class Name: TAGConv
Method Name: forward
Project Name: rusty1s/pytorch_geometric
Commit Name: 4e43734dd0b7f1c026069af64151a8f52f41060d
Time: 2019-07-03
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/gat_conv.py
Class Name: GATConv
Method Name: forward