8344037789a11e0ec254b1d7aa8815131f5ecabd,torch_geometric/nn/dense/dense_gcn_conv.py,DenseGCNConv,forward,#DenseGCNConv#Any#Any#Any#Any#,32
Before Change
out = torch.matmul(x, self.weight)
deg = adj.sum(dim=-1, keepdim=True).clamp(min=1).pow(-0.5)
deg_matrix = torch.bmm(deg, deg.permute(0, 2, 1))
adj_deg = deg_matrix * adj
out = torch.bmm(adj_deg, out) if B!=1 else torch.matmul(adj_deg, out)
if self.bias is not None:
After Change
out = torch.matmul(x, self.weight)
deg_inv_sqrt = adj.sum(dim=-1).clamp(min=1).pow(-0.5)
adj = deg_inv_sqrt.unsqueeze(-1) * adj * deg_inv_sqrt.unsqueeze(-2)
out = torch.matmul(adj, out)
if self.bias is not None:
out = out + self.bias
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 8344037789a11e0ec254b1d7aa8815131f5ecabd
Time: 2019-06-24
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/dense/dense_gcn_conv.py
Class Name: DenseGCNConv
Method Name: forward
Project Name: cornellius-gp/gpytorch
Commit Name: 60a342edc8b501802135df44869353cc8604d838
Time: 2018-01-11
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/rbf_kernel.py
Class Name: RBFKernel
Method Name: forward
Project Name: facebookresearch/Horizon
Commit Name: 16ba3819bbfde4e49711b51ccd357cb92d1de386
Time: 2020-05-21
Author: kittipat@fb.com
File Name: reagent/gym/preprocessors/default_preprocessors.py
Class Name: RecsimObsPreprocessor
Method Name: __call__
Project Name: mozilla/TTS
Commit Name: 9ba13b2d2f299f505f28024f8fecfd0941df73f4
Time: 2019-04-18
Author: egolge@mozilla.com
File Name: layers/tacotron2.py
Class Name: Attention
Method Name: apply_forward_attention