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
@ricardoV94 Looks like we can check inner graph for nodes that we need to replace, and if any found - create new Scan or OpFromGraph node with changed fgraph and replace old one. In you opinion will this approach work?
Actually for Scan there might be a shortcut, as Scan has it's own mode object. We can simple replace the old scan by a clone whose mode includes the rewrite we want to apply.
Eventually we want to get rid of this inner mode thing, but hopefully by that time we will have made Scan simpler so that's easier to manipulate anyway.
We include these rewrites when compiling logp graphs, but this won't replace inner logp graphs (e.g, inside Scan or not-inlined OpFromGraph)
pymc/pymc/pytensorf.py
Lines 1142 to 1144 in 371472d
The example in #6696 suffers from this. Sampling is quite faster when the rewrite is manually added
The text was updated successfully, but these errors were encountered: