f01591a685be78db2c440e8024895601017a5b72,gpytorch/models/variational_gp.py,VariationalGP,__call__,#VariationalGP#Any#,26

Before Change


                q_mat, t_mat = lq_object.lanczos_batch(induc_induc_matmul, init_vector)
                self.prior_chol = Variable(q_mat[0].matmul(t_mat[0].potrf().inverse()))

                self.variational_chol = gpytorch.inv_matmul(induc_induc_covar, variational_output.covar().lhs)
                self.has_computed_chol = True

            // Test mean
            predictive_mean = torch.add(test_mean, test_induc_covar.matmul(self.alpha))

After Change


                self.prior_chol = Variable(q_mat[0].matmul(t_mat[0].potrf().inverse()))

                chol_variational_output = variational_output.covar().root.evaluate()
                self.variational_chol = gpytorch.inv_matmul(induc_induc_covar, chol_variational_output)
                self.has_computed_chol = True

            // Test mean
            predictive_mean = torch.add(test_mean, test_induc_covar.matmul(self.alpha))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: f01591a685be78db2c440e8024895601017a5b72
Time: 2018-01-24
Author: gpleiss@gmail.com
File Name: gpytorch/models/variational_gp.py
Class Name: VariationalGP
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: 76c081b840cd71b20d8ac8692b312ebef95eae75
Time: 2019-04-11
Author: gpleiss@gmail.com
File Name: gpytorch/models/exact_prediction_strategies.py
Class Name: InterpolatedPredictionStrategy
Method Name: mean_cache


Project Name: cornellius-gp/gpytorch
Commit Name: e8a945606e0b3dafe71ce2f1bf1b52ab3b05428c
Time: 2021-02-10
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: _solve


Project Name: cornellius-gp/gpytorch
Commit Name: 30ca6105f64f1cbbdb7f012bc848ed840e6f3682
Time: 2019-04-12
Author: gpleiss@gmail.com
File Name: gpytorch/models/exact_prediction_strategies.py
Class Name: InterpolatedPredictionStrategy
Method Name: mean_cache