Open
Description
Description
Working on pymc-devs/pymc#6996 I added some functionality to rewrite inner graphs, but we want to move it into pytensor pymc-devs/pymc#6996 (comment). It should be
WalkingNestedGraphRewriter
which applies the samenode_rewriter
to both the outer graph and inner graphs. The idea is you would pass the previous rewrite which doesn't distinguish between the core case or aScan
OpFromGraph
. It would be theWalkingNestedGraphRewriter
that would apply that logic regardless of whichNodeRewriter
it's given
I`m going to work on it and create this issue for tracking purposes.