linear_operator cat_rows performance improvement #93
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello :)
This PR addresses the observations about computational bottlenecks made in cornellius-gp/gpytorch#2468
In
cat_rows
, theschur_root
is converted to a dense operator usingto_dense
. Hence, the subsequent inversion of the root fails to exploit the structure of the operator and defaults tostable_pinverse
which uses a QR decomposition.The PR contains the following modifications:
schur_root
to a dense operator unless needed for tensor assignment.root_inv_decomposition
exploit structure of the resulting inversion using cholesky by casting the result to aTriangularLinearOperator
instead of aDenseLinearOperator
.