-
Notifications
You must be signed in to change notification settings - Fork 112
Fix bug in parse_resize with nonstandard input shapes #4444
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4444 +/- ##
===========================================
- Coverage 92.21% 92.21% -0.00%
===========================================
Files 560 561 +1
Lines 26743 27228 +485
===========================================
+ Hits 24660 25107 +447
- Misses 2083 2121 +38
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug in the ONNX resize operator parsing where nonstandard input shapes (e.g., transposed or broadcasted tensors) would cause incorrect index calculations during linear mode interpolation. The fix ensures the input shape is converted to standard form before computing neighbor point indices.
- Converts input shape to standard form before passing to
calc_neighbor_pointsfunction - Fixes incorrect index calculations for inputs with non-contiguous strides
- Maintains consistency with similar shape handling in other parts of the codebase
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Test added. |
Motivation
Technical Details
Changelog Category