4a1ec9808c64efb92d645c288c6d79e11a497fc4,gpytorch/variational/unwhitened_variational_strategy.py,UnwhitenedVariationalStrategy,forward,#UnwhitenedVariationalStrategy#Any#Any#Any#Any#,62

Before Change



        // Cache the kernel matrix with the cached CG calls
        if self.training:
            self._memoize_cache["prior_distribution_memo"] = MultivariateNormal(induc_mean, induc_induc_covar)

        // Compute predictive mean
        inv_products = induc_induc_covar.inv_matmul(induc_data_covar, left_tensors.transpose(-1, -2))

After Change


        // Cache the kernel matrix with the cached CG calls
        if self.training:
            prior_dist = MultivariateNormal(induc_mean, induc_induc_covar)
            add_to_cache(self, "prior_distribution_memo", prior_dist)

        // Compute predictive mean
        inv_products = induc_induc_covar.inv_matmul(induc_data_covar, left_tensors.transpose(-1, -2))
        predictive_mean = torch.add(test_mean, inv_products[..., 0, :])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 4a1ec9808c64efb92d645c288c6d79e11a497fc4
Time: 2020-07-17
Author: balandat@fb.com
File Name: gpytorch/variational/unwhitened_variational_strategy.py
Class Name: UnwhitenedVariationalStrategy
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 4a1ec9808c64efb92d645c288c6d79e11a497fc4
Time: 2020-07-17
Author: balandat@fb.com
File Name: gpytorch/variational/whitened_variational_strategy.py
Class Name: WhitenedVariationalStrategy
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 4a1ec9808c64efb92d645c288c6d79e11a497fc4
Time: 2020-07-17
Author: balandat@fb.com
File Name: gpytorch/variational/orthogonally_decoupled_variational_strategy.py
Class Name: OrthogonallyDecoupledVariationalStrategy
Method Name: forward