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

Rewrite reshapes that only expand or squeeze dims #1200

Merged
merged 6 commits into from
Feb 17, 2025

Canonicalize squeeze out of reshape and specialize back

516f5b9
Select commit
Loading
Failed to load commit list.
Merged

Rewrite reshapes that only expand or squeeze dims #1200

Canonicalize squeeze out of reshape and specialize back
516f5b9
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Feb 17, 2025 in 0s

82.27% (-0.02%) compared to b5a64c7

View this Pull Request on Codecov

82.27% (-0.02%) compared to b5a64c7

Details

Codecov Report

Attention: Patch coverage is 97.67442% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.27%. Comparing base (b5a64c7) to head (516f5b9).

Files with missing lines Patch % Lines
pytensor/tensor/rewriting/shape.py 97.22% 1 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1200      +/-   ##
==========================================
- Coverage   82.28%   82.27%   -0.02%     
==========================================
  Files         186      186              
  Lines       47987    48018      +31     
  Branches     8629     8634       +5     
==========================================
+ Hits        39486    39505      +19     
- Misses       6347     6362      +15     
+ Partials     2154     2151       -3     
Files with missing lines Coverage Δ
pytensor/graph/rewriting/basic.py 69.62% <ø> (-0.70%) ⬇️
pytensor/tensor/elemwise.py 89.01% <100.00%> (+0.04%) ⬆️
pytensor/tensor/shape.py 90.14% <100.00%> (-0.34%) ⬇️
pytensor/tensor/slinalg.py 93.52% <100.00%> (ø)
pytensor/tensor/rewriting/shape.py 82.71% <97.22%> (+0.68%) ⬆️