Skip to content

Let each rule name the state it allocates - #151

Open
jessegrabowski wants to merge 1 commit into
pymc-devs:mainfrom
jessegrabowski:per-group-rules
Open

Let each rule name the state it allocates#151
jessegrabowski wants to merge 1 commit into
pymc-devs:mainfrom
jessegrabowski:per-group-rules

Conversation

@jessegrabowski

@jessegrabowski jessegrabowski commented Sep 2, 2026

Copy link
Copy Markdown
Member

Two rules of the same kind in one step both name their step counter after the rule, so compile_train refuses the graph. The guard that catches it tells you to give one a namespace of its own. No rule accepted one. Every rule takes one now.

Closes #132


📚 Documentation preview 📚: https://pytensor-ml--151.org.readthedocs.build/en/151/

The state-name guard already told callers to give one of two colliding rules a namespace of its own, and no rule accepted one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two rules over two parameter groups is impossible, and the error names a namespace argument that does not exist

1 participant