Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to tfd_e.MultivariateNormalPrecisionFactorLinearOperator #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chrism0dwk
Copy link
Owner

Potential speed improvement, cutting out an explicit matrix
inverse.

Potential speed improvement, cutting out an explicit matrix
inverse.
@chrism0dwk
Copy link
Owner Author

@csuter Smooth switch to tfp.experimental.distributions.MultivariateNormalPrecisionFactorLinearOperator here, but seeing warnings:

WARNING:tensorflow:Using (possibly slow) default implementation of determinant. Requires conversion to a dense matrix and O(N^3) operations.

I guess this is reasonable, though unavoidable?

@csuter
Copy link
Contributor

csuter commented Jun 22, 2021

Use LinearOperatorLowerTriangular for the precision factor to avoid this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants