-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define forward log det jacobian explicitly in CorrelationCholesky bij…
…ector. The bijector base class definition is not able to handle rank-changing bijectors such as CorrelationCholesky. The problem is that the value of event_ndims for fldj is sent to ildj as is but it should be 'event_ndims + 1'. For this specific case, the resulting exception only gets triggered when value of 'event_ndims' is not known statically -- for instance when invoked by HamiltonianMonteCarlo in Graph mode. The error is still there in Eager mode IIUC but in this case the final answer is correct as no exception is thrown. I've added a unit test for this case which fails without this change. PiperOrigin-RevId: 249770795
- Loading branch information
1 parent
912f40f
commit 1231703
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters