Skip to content

Conversation

@eclipse1605
Copy link

@eclipse1605 eclipse1605 commented Dec 17, 2025

Description

i relaxed the logp derivation restrictions for mixing measurable variables with compile time constants in branching/stacking ops. expressions like pt.where(cond, rv, -1) now produce a logp without requiring users to manually wrap constants in pm.DiracDelta.

notes

  • only compile time constants are accepted
  • only constant branches are allowed to broadcast.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

@welcome
Copy link

welcome bot commented Dec 17, 2025

Thank You Banner]
💖 Thanks for opening this pull request! 💖 The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should branching logps accept constants

1 participant