The compiled logprob graphs do not enforce the input shapes #203
Labels
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Let's consider the following artificial example. Although the variable being conditioned on is of shape
(3,)
, the compiledlogprob
graph accepts any input shape as long as the input is 1-dimensional:I would however expect the compiled function to behave like the following:
This was already noted here #51 (reply in thread), and is due to the fact that we do not enforce any type of shape constraints when cloning the random variables to get the value variables:
aeppl/aeppl/joint_logprob.py
Line 100 in eb55106
This constraint would have been difficult to enforce with the previous
conditional_logprob
interface that asked users to pass value variables. However, we now have full control over how value variables are created, and could thus specify their shape and dtype.The text was updated successfully, but these errors were encountered: