6f3f79792891b35abf0f9281a226dcd2e0a57eb3,torch_geometric/nn/dense/dense_graph_conv.py,DenseGraphConv,forward,#DenseGraphConv#Any#Any#Any#,25

Before Change


        elif self.aggr == "max":
            out = out.max(dim=-1, keepdim=True)[0]

        out = out + self.lin_root(x)

        if mask is not None:
            out = out * mask.view(B, N, 1).to(x.dtype)

After Change


            out[out == float("-inf")] = 0.

        out = self.lin_rel(out)
        out += self.lin_root(x)

        if mask is not None:
            out = out * mask.view(-1, N, 1).to(x.dtype)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 6f3f79792891b35abf0f9281a226dcd2e0a57eb3
Time: 2021-02-08
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/dense/dense_graph_conv.py
Class Name: DenseGraphConv
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: e7a0a2609ae97a16700c758fab13cc8dd5463b3d
Time: 2020-06-08
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: e7a0a2609ae97a16700c758fab13cc8dd5463b3d
Time: 2020-06-08
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/graph_conv.py
Class Name: GraphConv
Method Name: forward