Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid inplace mutation in replace_rvs_by_values #7055

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Dec 8, 2023

Closes #7054


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

@ricardoV94 ricardoV94 changed the title Avoid inplace mutation in replace_rvs_by_values Avoid inplace mutation in replace_rvs_by_values Dec 8, 2023
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #7055 (5d049dd) into main (01ddcb8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7055   +/-   ##
=======================================
  Coverage   92.19%   92.19%           
=======================================
  Files         101      101           
  Lines       16887    16893    +6     
=======================================
+ Hits        15569    15575    +6     
  Misses       1318     1318           
Files Coverage Δ
pymc/logprob/utils.py 97.61% <100.00%> (+0.11%) ⬆️
pymc/pytensorf.py 91.29% <ø> (ø)

@ricardoV94 ricardoV94 force-pushed the avoid_inplace_replacement branch 2 times, most recently from 61fb352 to ffbe943 Compare December 9, 2023 11:19
@ricardoV94
Copy link
Member Author

Only tests failing are due to #7057 so this is ready for review

This would happen when transforms reference other variables
@ricardoV94 ricardoV94 merged commit 2e05854 into pymc-devs:main Dec 10, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing unobserved_value_vars changes model in place
2 participants