e8a945606e0b3dafe71ce2f1bf1b52ab3b05428c,gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py,KroneckerProductAddedDiagLazyTensor,_solve,#KroneckerProductAddedDiagLazyTensor#Any#Any#Any#,95
Before Change
// \tilde Q (\tilde \Lambda + I)^{-1} \tilde Q (\otimes D_i^{1/2})
dlt_inv_root = dlt.sqrt().inverse()
symm_prod = KroneckerProductLazyTensor(
*[d.matmul(k).matmul(d) for k, d in zip(lt.lazy_tensors, dlt_inv_root.lazy_tensors)]
)
evals, evecs = symm_prod.symeig(eigenvectors = True)
evals_p_i = DiagLazyTensor(evals + 1.)
After Change
res1 = evecs._transpose_nonbatch().matmul(dlt_inv_root.matmul(rhs))
res2 = evals_p_i.inv_matmul(res1)
res3 = evecs.matmul(res2)
res = dlt_inv_root.matmul(res3)
return res.to(rhs_dtype)
tmp_term = S.matmul(Lambda_I.inv_matmul(S._transpose_nonbatch().matmul(rhs)))
res = lt._inv_matmul(rhs - tmp_term)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: NifTK/NiftyNet
Commit Name: 135a56e0935fbb04811f8ce7b9f514f498212f71
Time: 2018-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: ftheta
Project Name: rtqichen/torchdiffeq
Commit Name: 2b189592e0a169fc991bec98f39bbe8405e3440b
Time: 2020-07-27
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/solvers.py
Class Name: RKAdaptiveStepsizeODESolver
Method Name: _interp_fit