Incorrect event dimension for ComposeTransform
if transform reduces event dimensions
#1893
Labels
bug
Something isn't working
An example is probably the clearest illustration. If the transform increases the number of event dimensions, everything works as expected.
If the transform reduces the number of event dimensions, wrapping the transform in a
ComposeTransform
leads to unexpected results.I had a brief look at the code below, but I couldn't quite get my head around it.
numpyro/numpyro/distributions/transforms.py
Lines 292 to 298 in 8ace34f
Here's a minimal test that can be added to
test/test_transforms.py
to reproduce.The text was updated successfully, but these errors were encountered: