Fix constant folding dropping subgraph initializers when inlining If branches #2825
Codecov / codecov/project
succeeded
Apr 2, 2026 in 1s
72.04% (+0.00%) compared to 4291ff2
View this Pull Request on Codecov
72.04% (+0.00%) compared to 4291ff2
Details
Codecov Report
❌ Patch coverage is 79.31034% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.04%. Comparing base (4291ff2) to head (95a6883).
✅ All tests successful. No failed tests found.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| onnxscript/optimizer/_constant_folding.py | 57.14% | 3 Missing and 3 partials |
Additional details and impacted files
@@ Coverage Diff @@
## main #2825 +/- ##
=======================================
Coverage 72.04% 72.04%
=======================================
Files 239 239
Lines 29305 29334 +29
Branches 2880 2884 +4
=======================================
+ Hits 21112 21135 +23
- Misses 7216 7219 +3
- Partials 977 980 +3 ☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.
Loading