60a342edc8b501802135df44869353cc8604d838,gpytorch/kernels/kernel.py,Kernel,__call__,#Kernel#Any#Any#,8

Before Change


        if x2.data.ndimension() == 1:
            x2 = x2.view(-1, 1)
        assert(x1.size(1) == x2.size(1))
        return super(Kernel, self).__call__(x1, x2, **params)

After Change


            x1 = x1.unsqueeze(0)
            x2 = x2.unsqueeze(0)

        res = super(Kernel, self).__call__(x1, x2, **params)
        if not is_batch:
            res = res[0]
        return res
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 60a342edc8b501802135df44869353cc8604d838
Time: 2018-01-11
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: 0f8802fba8f55cd66300017fdf9b7189183ff9d5
Time: 2019-04-12
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/product_structure_kernel.py
Class Name: ProductStructureKernel
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: b821df469dbf44ab1f1f3564c454eb2787cd412b
Time: 2019-04-11
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/product_structure_kernel.py
Class Name: ProductStructureKernel
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: fc1ace381f6772e341f56faa03ddd646c82b64cc
Time: 2018-08-28
Author: gardner.jake@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: forward_diag