40a9bab09df211490b85eae65030b6cf701eb523,kornia/geometry/transform/pyramid.py,PyrUp,forward,#PyrUp#Any#,89

Before Change


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

        // upsample tensor
        x_up: torch.Tensor = F.interpolate(input, size=(height * 2, width * 2),
                                           mode="bilinear", align_corners=True)

        // blurs upsampled tensor
        x_blur: torch.Tensor = F.conv2d(
            x_up, kernel, padding=2, stride=1, groups=c)
        return x_blur


// functiona api

After Change


                                           mode="bilinear", align_corners=True)

        // blurs upsampled tensor
        x_blur: torch.Tensor = kornia.filter2D(
            x_up, self.kernel, self.border_type)
        return x_blur


// functiona api
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: arraiy/torchgeometry
Commit Name: 40a9bab09df211490b85eae65030b6cf701eb523
Time: 2019-06-25
Author: edgar.riba@gmail.com
File Name: kornia/geometry/transform/pyramid.py
Class Name: PyrUp
Method Name: forward


Project Name: arraiy/torchgeometry
Commit Name: 40a9bab09df211490b85eae65030b6cf701eb523
Time: 2019-06-25
Author: edgar.riba@gmail.com
File Name: kornia/geometry/transform/pyramid.py
Class Name: PyrUp
Method Name: forward


Project Name: arraiy/torchgeometry
Commit Name: b51bfe75d02eeab204501f2695845ff28f4a87c2
Time: 2019-06-25
Author: edgar.riba@gmail.com
File Name: kornia/filters/gaussian.py
Class Name: GaussianBlur2d
Method Name: forward


Project Name: arraiy/torchgeometry
Commit Name: 40a9bab09df211490b85eae65030b6cf701eb523
Time: 2019-06-25
Author: edgar.riba@gmail.com
File Name: kornia/geometry/transform/pyramid.py
Class Name: PyrDown
Method Name: forward