5bebc7176ca1dd9c4131eccd8dd0c1de283b2dd8,kornia/filters/sobel.py,SpatialGradient,forward,#SpatialGradient#Any#,44

Before Change


        // prepare kernel
        b, c, h, w = input.shape
        tmp_kernel: torch.Tensor = self.kernel.to(input.device).to(input.dtype)
        kernel: torch.Tensor = tmp_kernel.repeat(c, 1, 1, 1, 1)

        // convolve input tensor with sobel kernel
        kernel_flip: torch.Tensor = kernel.flip(-3)
        // Pad with "replicate for spatial dims, but with zeros for channel

After Change


        // prepare kernel
        b, c, h, w = input.shape
        tmp_kernel: torch.Tensor = self.kernel.to(input.device).to(input.dtype)
        kernel: torch.Tensor = tmp_kernel.unsqueeze(1).unsqueeze(1)

        // convolve input tensor with sobel kernel
        kernel_flip: torch.Tensor = kernel.flip(-3)
        // Pad with "replicate for spatial dims, but with zeros for channel
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: arraiy/torchgeometry
Commit Name: 5bebc7176ca1dd9c4131eccd8dd0c1de283b2dd8
Time: 2019-11-29
Author: ducha.aiki@gmail.com
File Name: kornia/filters/sobel.py
Class Name: SpatialGradient
Method Name: forward


Project Name: mariogeiger/se3cnn
Commit Name: 7f0ac6da5577ea93deab25ba7e0d6bca33e60bfb
Time: 2018-04-24
Author: mweiler@dta160174.science.uva.nl
File Name: se3_cnn/dropout.py
Class Name: SE3DropoutF
Method Name: compute_noise


Project Name: arraiy/torchgeometry
Commit Name: 50e4301f196bb1b47e92da8216a4ef94bd5f3502
Time: 2019-11-29
Author: ducha.aiki@gmail.com
File Name: kornia/filters/filter.py
Class Name:
Method Name: filter2D


Project Name: arraiy/torchgeometry
Commit Name: 13146eb438a4890021ae51d4b2e090e7f6c3c4bb
Time: 2019-11-10
Author: edgar.riba@gmail.com
File Name: kornia/losses/ssim.py
Class Name: SSIM
Method Name: forward