-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: ### Motivation Currently when you compose two `Bijector`'s with different `event_dims`'s, e.g. ```python bijectors = B.Compose(bijectors=[B.AffineAutoregressive(), B.Sigmoid()]) ``` you get an error when the `log_detJ` term is calculated. ### Changes proposed `Compose.__init__` calculates the output `event_dim` as the maximum over the bijectors, and the calculation of `event_dim` sums out extra dimensions where required. Pull Request resolved: #107 Test Plan: See #104 for an example of code that currently fails. Reviewed By: vmoens Differential Revision: D36169511 Pulled By: stefanwebb fbshipit-source-id: 773a198bacc420b72ea6b4126e0e1c0ee54f726a
- Loading branch information
1 parent
a8dbf2b
commit 852a960
Showing
1 changed file
with
25 additions
and
4 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