35c0192599fb5d4ace2fb6f8f363a42d1cbb972c,gpytorch/variational/grid_inducing_point_strategy.py,GridInducingPointStrategy,variational_samples,#GridInducingPointStrategy#Any#Any#,9

Before Change


        samples_size = deepcopy(interp_size)
        samples_size[-3] = samples.size()[-2]
        interp_indices_expanded = interp_indices.unsqueeze(-1).expand(*interp_size)
        samples_output = samples.unsqueeze(-2).expand(*samples_size).gather(-3, interp_indices_expanded)
        samples_output = samples_output.mul(interp_values.unsqueeze(-1).expand(interp_size))
        samples = samples_output.sum(-2)

        return samples

After Change


        // Left multiply samples by interpolation matrix
        interp_indices = output.covar().left_interp_indices
        interp_values = output.covar().left_interp_values
        samples = left_interp(interp_indices, interp_values, samples)

        return samples
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 35c0192599fb5d4ace2fb6f8f363a42d1cbb972c
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/variational/grid_inducing_point_strategy.py
Class Name: GridInducingPointStrategy
Method Name: variational_samples


Project Name: cornellius-gp/gpytorch
Commit Name: 35c0192599fb5d4ace2fb6f8f363a42d1cbb972c
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/inducing_points/grid_inducing_point_module.py
Class Name: GridInducingPointModule
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: d6153851bcc85c18a8fcb8a4030c8a4f8b415a75
Time: 2017-11-14
Author: gpleiss@gmail.com
File Name: gpytorch/inducing_points/additive_grid_inducing_point_module.py
Class Name: AdditiveGridInducingPointModule
Method Name: __call__