Skip to content

Add WalkingNestedGraphRewriter to apply node rewrites to Scans and OpFromGraph inner graphs #529

Open
@aerubanov

Description

@aerubanov

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 same node_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 a Scan OpFromGraph. It would be the WalkingNestedGraphRewriter that would apply that logic regardless of which NodeRewriter it's given

I`m going to work on it and create this issue for tracking purposes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions