Skip to content

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Aug 27, 2025

Spinoff from #1592

This PR removes several rewriting functionality that was not used anywhere besides the tests. They don't really do anything that would be hard to implement if someone needed it.

On the plus side, it provides less ways of doing the same thing, which should reduce confusion.

I left the unused pre_greedy_node_rewriter which used to be used in the ScanSaveMemory to try and curb the crazy subtensor graph that it generates (discussed in #112). Until we address that issue I'll let it stay for reference.


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

Copy link

codecov bot commented Aug 28, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.71%. Comparing base (40ccab1) to head (5bfbcbe).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pytensor/graph/rewriting/basic.py 90.00% 0 Missing and 1 partial ⚠️
pytensor/tensor/rewriting/basic.py 75.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (85.71%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1595      +/-   ##
==========================================
+ Coverage   81.54%   81.71%   +0.17%     
==========================================
  Files         230      230              
  Lines       53136    52924     -212     
  Branches     9448     9402      -46     
==========================================
- Hits        43329    43248      -81     
+ Misses       7370     7244     -126     
+ Partials     2437     2432       -5     
Files with missing lines Coverage Δ
pytensor/graph/features.py 71.01% <ø> (+3.38%) ⬆️
pytensor/tensor/rewriting/math.py 90.66% <ø> (+0.20%) ⬆️
pytensor/graph/rewriting/basic.py 72.66% <90.00%> (+3.69%) ⬆️
pytensor/tensor/rewriting/basic.py 95.71% <75.00%> (-0.15%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ricardoV94 ricardoV94 marked this pull request as ready for review August 28, 2025 16:07
Copy link
Member

@jessegrabowski jessegrabowski left a comment

Choose a reason for hiding this comment

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

You even updated the docs (❤ ω ❤)

@ricardoV94 ricardoV94 merged commit 7092f55 into pymc-devs:main Aug 28, 2025
63 of 64 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.

2 participants