pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Add a function to create a tensor that represents the loop over the posterior

Open lucianopaz opened this issue 4 months ago • 2 comments

Description

This PR adds the loop_over_posterior function. It complements vectorize_over_posterior and can be used whenever vectorize_graph is not implemented for some nodes in the computational graph (i.e. some kinds of AdvancedSetSubtensor raise NotImplementedError when trying to vectorize them).

Related Issue

  • [ ] Closes #
  • [ ] Related to #

Checklist

Type of change

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

📚 Documentation preview 📚: https://pymc--7885.org.readthedocs.build/en/7885/

lucianopaz avatar Aug 01 '25 11:08 lucianopaz