fix(optimizer): move subgraph initializers to main graph when inlining If branches #2887
+112
−37
Codecov / codecov/project
succeeded
Apr 16, 2026 in 0s
72.26% (+0.23%) compared to 12234f8
View this Pull Request on Codecov
72.26% (+0.23%) compared to 12234f8
Details
Codecov Report
❌ Patch coverage is 85.10638% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.26%. Comparing base (12234f8) to head (c75a37d).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| onnxscript/optimizer/_constant_folding.py | 60.00% | 3 Missing and 3 partials |
| onnxscript/optimizer/_constant_folding_test.py | 96.87% | 1 Missing |
Additional details and impacted files
@@ Coverage Diff @@
## main #2887 +/- ##
==========================================
+ Coverage 72.02% 72.26% +0.23%
==========================================
Files 239 241 +2
Lines 29309 29690 +381
Branches 2882 2918 +36
==========================================
+ Hits 21110 21455 +345
- Misses 7219 7238 +19
- Partials 980 997 +17 ☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.
Loading