d278768807dff0c1920795073a219577571959d7,gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py,KroneckerProductAddedDiagLazyTensor,logdet,#KroneckerProductAddedDiagLazyTensor#,103

Before Change


        for lazy_tensor in self._lazy_tensor.lazy_tensors:
            sub_eigs.append(lazy_tensor.evaluate().symeig(eigenvectors=True)[0][:, 0].unsqueeze(-1))

        eigs = sub_eigs[0].matmul(sub_eigs[1].t())
        return torch.log(eigs + noise).sum()

    def _kron_svd(self):

After Change



    def logdet(self):
        noise = self._diag_tensor[0, 0]
        sub_eigs = [DiagLazyTensor(svd_decomp.S) for svd_decomp in self._kron_svd]
        sub_eigs_kronecker = KroneckerProductLazyTensor(*sub_eigs).diag()
        return torch.log(sub_eigs_kronecker + noise).sum()

    @property
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: d278768807dff0c1920795073a219577571959d7
Time: 2020-06-26
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: logdet


Project Name: cornellius-gp/gpytorch
Commit Name: d278768807dff0c1920795073a219577571959d7
Time: 2020-06-26
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: inv_quad


Project Name: cornellius-gp/gpytorch
Commit Name: 64c36e3bafaecb7bfd1fec817309d8c8cbb4b5f8
Time: 2021-01-22
Author: wjm363@nyu.edu
File Name: test/lazy/test_kronecker_product_added_diag_lazy_tensor.py
Class Name: TestKroneckerProductAddedDiagLazyTensor
Method Name: create_lazy_tensor