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

Fix copying of shared variables in fgraph_from_model #7153

Merged

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Feb 13, 2024

Closes #7105

Also removes use of deprecated ScalarSharedVariable class pymc-devs/pytensor#629


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

@ricardoV94 ricardoV94 changed the title Fix copying of shared variables in fgraph_from_model Fix copying of shared variables in fgraph_from_model Feb 13, 2024
@ricardoV94 ricardoV94 force-pushed the fix_shared_vars_fgraph_from_model branch from 6535360 to bdc55af Compare February 13, 2024 09:12
@ricardoV94 ricardoV94 force-pushed the fix_shared_vars_fgraph_from_model branch from bdc55af to 52b6106 Compare February 13, 2024 09:15
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (627a8dd) 90.41% compared to head (52b6106) 92.36%.
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7153      +/-   ##
==========================================
+ Coverage   90.41%   92.36%   +1.94%     
==========================================
  Files         101      101              
  Lines       16930    16929       -1     
==========================================
+ Hits        15308    15636     +328     
+ Misses       1622     1293     -329     
Files Coverage Δ
pymc/model/core.py 92.22% <100.00%> (ø)
pymc/model/fgraph.py 97.39% <100.00%> (-0.02%) ⬇️

... and 6 files with indirect coverage changes

Copy link
Contributor

@AlexAndorra AlexAndorra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good, thanks @ricardoV94 . Really interesting to read this code, helps to understand pytensor a bit more.
I'll test it on my usecase now

@AlexAndorra AlexAndorra merged commit 0d8ddba into pymc-devs:main Feb 13, 2024
23 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.

fgraph_from_model fails when cloning shared variables with specialized static shape
2 participants