Support "transitive" Scan
log-probabilities
#75
Labels
enhancement
New feature or request
graph rewriting
Involves the implementation of rewrites to Aesara graphs
help wanted
Extra attention is needed
important
This label is used to indicate priority over things not given this label
op-probability
Involves the implementation of log-probabilities for Aesara `Op`s
scan
Currently,
Scan
log-probability support only handles cases in which theMeasurableVariable
is created inside the body/step function of theScan
, and not when the body/step function simply references aMeasurableVariable
that is being iterated over by theScan
.For example, the following is not supported:
This example is very trivial, but, if we change
step_fn
so that it performs a supported, measurable operation ony_t
(e.g. indexing a mixture), it wouldn't work for the same reason.When a value is assigned to
Scan
output terms likeY_1T_rv
, we could "push" the relevantsequences
inputs into the step function. In other words, we could construct the type of graph we currently handle.Working from the example above, we would rewrite the
Scan
into something like the following:The text was updated successfully, but these errors were encountered: