9d68b4ad8ba39fdf34dd11d79dd4168ab93d0108,gpytorch/lazy/added_diag_lazy_tensor.py,AddedDiagLazyTensor,_preconditioner,#AddedDiagLazyTensor#,50
Before Change
)
lr_flipped = lr_flipped + torch.eye(n=lr_flipped.size(-2), dtype=lr_flipped.dtype, device=lr_flipped.device)
if lr_flipped.ndimension() == 3:
ld_one = (NonLazyTensor(batch_potrf(lr_flipped)).diag().log().sum(-1)) * 2
ld_two = self._diag_tensor.diag().log().sum(-1)
else:
ld_one = lr_flipped.cholesky(upper=True).diag().log().sum() * 2
After Change
)
lr_flipped = lr_flipped + torch.eye(n=lr_flipped.size(-2), dtype=lr_flipped.dtype, device=lr_flipped.device)
if lr_flipped.ndimension() == 3:
ld_one = (NonLazyTensor(torch.cholesky(lr_flipped, upper=True)).diag().log().sum(-1)) * 2
ld_two = self._diag_tensor.diag().log().sum(-1)
else:
ld_one = lr_flipped.cholesky(upper=True).diag().log().sum() * 2
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: 9d68b4ad8ba39fdf34dd11d79dd4168ab93d0108
Time: 2018-11-18
Author: cs15btech11043@iith.ac.in
File Name: gpytorch/lazy/added_diag_lazy_tensor.py
Class Name: AddedDiagLazyTensor
Method Name: _preconditioner
Project Name: cornellius-gp/gpytorch
Commit Name: 9d68b4ad8ba39fdf34dd11d79dd4168ab93d0108
Time: 2018-11-18
Author: cs15btech11043@iith.ac.in
File Name: test/utils/test_linear_cg.py
Class Name: TestLinearCG
Method Name: test_batch_cg_with_tridiag
Project Name: cornellius-gp/gpytorch
Commit Name: 9d68b4ad8ba39fdf34dd11d79dd4168ab93d0108
Time: 2018-11-18
Author: cs15btech11043@iith.ac.in
File Name: gpytorch/utils/pivoted_cholesky.py
Class Name:
Method Name: woodbury_factor
Project Name: cornellius-gp/gpytorch
Commit Name: 9d68b4ad8ba39fdf34dd11d79dd4168ab93d0108
Time: 2018-11-18
Author: cs15btech11043@iith.ac.in
File Name: test/utils/test_linear_cg.py
Class Name: TestLinearCG
Method Name: test_batch_cg