d4e602e3f75b5599f08083d862205dc333a17c3e,gpytorch/kernels/grid_interpolation_kernel.py,GridInterpolationKernel,forward,#GridInterpolationKernel#Any#Any#Any#Any#,144

Before Change


        base_lazy_tsr = self._inducing_forward(last_dim_is_batch=last_dim_is_batch, **params)
        if last_dim_is_batch:
            base_lazy_tsr = base_lazy_tsr.repeat(*x1.shape[:-2], x1.size(-1), 1, 1)
        if x1.dim() > 2:
            base_lazy_tsr = base_lazy_tsr.repeat(*x1.shape[:-2], 1, 1)

        left_interp_indices, left_interp_values = self._compute_grid(x1, last_dim_is_batch)
        if torch.equal(x1, x2):

After Change


        res = InterpolatedLazyTensor(
            base_lazy_tsr.expand(*batch_shape, *base_lazy_tsr.matrix_shape),
            left_interp_indices.detach().expand(*batch_shape, *left_interp_indices.shape[-2:]),
            left_interp_values.expand(*batch_shape, *left_interp_values.shape[-2:]),
            right_interp_indices.detach().expand(*batch_shape, *right_interp_indices.shape[-2:]),
            right_interp_values.expand(*batch_shape, *right_interp_values.shape[-2:]),
        )

        if diag:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: d4e602e3f75b5599f08083d862205dc333a17c3e
Time: 2019-11-25
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/grid_interpolation_kernel.py
Class Name: GridInterpolationKernel
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: d4e602e3f75b5599f08083d862205dc333a17c3e
Time: 2019-11-25
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/grid_interpolation_kernel.py
Class Name: GridInterpolationKernel
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 4203fde78e0522513258a60466f1575e161b9138
Time: 2019-04-11
Author: gpleiss@gmail.com
File Name: gpytorch/variational/variational_strategy.py
Class Name: VariationalStrategy
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 80bfc0e92ca2a52621414fb4de5cc8a2bb5474b6
Time: 2019-04-12
Author: gpleiss@gmail.com
File Name: gpytorch/variational/variational_strategy.py
Class Name: VariationalStrategy
Method Name: forward