You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the second one is more efficient, because the logp is vectorized among a single batched Normal.
We could add a rewrite in the logprob_rewrites to convert the former to the second, so that users are not penalized from using the first form (which may be more intuitive for some).
Actually that sort of rewrite stack([rv1, rv2]) -> rv3 could be useful in many places in the logprob submodule
The text was updated successfully, but these errors were encountered:
Description
The following distributions are equivalent:
But the second one is more efficient, because the logp is vectorized among a single batched Normal.
We could add a rewrite in the
logprob_rewrites
to convert the former to the second, so that users are not penalized from using the first form (which may be more intuitive for some).Actually that sort of rewrite
stack([rv1, rv2]) -> rv3
could be useful in many places in thelogprob
submoduleThe text was updated successfully, but these errors were encountered: