569bfbb5af6f9b0355f3ec0058e3f57495e60953,gpytorch/functions/add_diag.py,AddDiag,forward,#AddDiag#Any#Any#,6

Before Change


            raise RuntimeError("Input must be a single-element tensor")
        val = diag.squeeze()[0]

        return torch.eye(*input.size()).type_as(input).mul_(val).add_(input)

    def backward(self, grad_output):
        input_grad = None

After Change


            raise RuntimeError("Input must be a single-element tensor")
        val = diag.squeeze()[0]

        diag_mat = torch.eye(input.size(-2), input.size(-1)).type_as(input)
        if input.ndimension() == 3:
            diag_mat = diag_mat.unsqueeze(0).expand_as(input)
        return diag_mat.mul_(val).add_(input)

    def backward(self, grad_output):
        input_grad = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 569bfbb5af6f9b0355f3ec0058e3f57495e60953
Time: 2018-01-10
Author: gpleiss@gmail.com
File Name: gpytorch/functions/add_diag.py
Class Name: AddDiag
Method Name: forward


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: pytorch/audio
Commit Name: 0e0d1e590e8cdae50d04a96617ea6601446f99fb
Time: 2018-12-25
Author: david@da3.net
File Name: torchaudio/transforms.py
Class Name: PadTrim
Method Name: __call__


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