e503f50cb38fb1864fb6d66ba927b0852159428d,gpytorch/kernels/spectral_mixture_kernel.py,SpectralMixtureKernel,forward,#SpectralMixtureKernel#Any#Any#,18

Before Change



        sq_distance.mul_(2 * math.pi ** 2)  // sq_distance = -2*pi^2*(x-z)^2

        res = torch.zeros(n, m)
        for weight, mean, scale in zip(mixture_weights, mixture_means, mixture_scales):
            weight = weight.expand(n, m)
            mean = mean.expand(n, m)
            scale = scale.expand(n, m)

After Change



        sq_distance.mul_(2 * math.pi ** 2)  // sq_distance = -2*pi^2*(x-z)^2

        res = x1.data.new(n, m).zero_()
        for weight, mean, scale in zip(mixture_weights, mixture_means, mixture_scales):
            weight = weight.expand(n, m)
            mean = mean.expand(n, m)
            scale = scale.expand(n, m)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: e503f50cb38fb1864fb6d66ba927b0852159428d
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/spectral_mixture_kernel.py
Class Name: SpectralMixtureKernel
Method Name: forward


Project Name: OpenNMT/OpenNMT-py
Commit Name: a7a5cdc598afd6afa3d0e9d355360bebc4947c29
Time: 2017-01-24
Author: bryan.mccann.is@gmail.com
File Name: snli/model.py
Class Name: Encoder
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 07d2760039f66bad074ef7c1957dd51e39fb208b
Time: 2017-09-18
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/rbf_kernel.py
Class Name: RBFFunction
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: e503f50cb38fb1864fb6d66ba927b0852159428d
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/kronecker_product_lazy_variable.py
Class Name: KroneckerProductLazyVariable
Method Name: __getitem__