d7bd8bca1dd54a8255afffb462b84c8b9c3b7eca,torch_geometric/nn/functional/spline_gcn/edgewise_spline_weighting_cpu.py,_EdgewiseSplineGcn,backward,#_EdgewiseSplineGcn#Any#,33

Before Change


        n = features_in.size(0)

        features_grad_in = torch.zeros(n, M_in).type_as(features_in)
        weight_grad_in = torch.zeros(weight.size()).type_as(weight)

        for k in range(self.m**self.dim):
            b = self.amount[:, k]  // [|E|]

After Change


        k_max = self.amount.size(1)
        num_edges = input.size(0)

        grad_input = grad_output.new(num_edges, M_in).fill_(0)
        grad_weight = grad_output.new(K, M_in, M_out).fill_(0)

        for k in range(k_max):
            b = self.amount[:, k]  // [|E|]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: d7bd8bca1dd54a8255afffb462b84c8b9c3b7eca
Time: 2017-10-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/functional/spline_gcn/edgewise_spline_weighting_cpu.py
Class Name: _EdgewiseSplineGcn
Method Name: backward


Project Name: allenai/allennlp
Commit Name: 5acb5a785b9ed60743e6f687a96bd92dd4e88578
Time: 2017-11-29
Author: markn@allenai.org
File Name: allennlp/modules/seq2vec_encoders/pytorch_seq2vec_wrapper.py
Class Name: PytorchSeq2VecWrapper
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: 314ee5916b0427e3cd27e017265e34d1b22da48f
Time: 2017-10-26
Author: janeric.lenssen@tu-dortmund.de
File Name: torch_geometric/nn/functional/spline_gcn/spline_gpu.py
Class Name: SplineWeightsGPU
Method Name: forward


Project Name: mozilla/TTS
Commit Name: 56f8b2d19f90807ce7e5801b780a8d4a6da96541
Time: 2018-02-26
Author: egolge@mozilla.com
File Name: layers/tacotron.py
Class Name: Decoder
Method Name: forward