-
Notifications
You must be signed in to change notification settings - Fork 439
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
Autodiff/training support for Nearest Interpolation #1414
Conversation
feat: bilinear interpolation for tch, ndarray and wgpu backend fix: reduce test case size to avoid exceeding floating-point precision limits feat: support nearest-neighbor interpolation for ndarray backend feat: support nearest-neighbor interpolation for wgpu backend feat: support fusion backend fix: no-std support build: upgrade dependencies
…ku/burn into feat/interpolation merge upstream changes :wq!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1414 +/- ##
==========================================
- Coverage 85.81% 85.80% -0.02%
==========================================
Files 610 611 +1
Lines 70417 70715 +298
==========================================
+ Hits 60428 60674 +246
- Misses 9989 10041 +52 ☔ View full report in Codecov by Sentry. |
Some more context: For Tch-backend -> Backward passes for all interpolation types(nearest, bilinear, bicubic) are supported in this PR. Bilinear, Bicubic for the backends(ndarray, wsgl) are under progress in another branch. |
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.
LGTM
Pull Request Template
Checklist
run-checks all
script has been executed.Related Issues/PRs
#1393
Changes
This PR implements the backward pass for nearest interpolation for all backends (Ndarray, Tch, WGPU) except Candle. This ensures that training can now be done with this operation. Nearest neighbour interpolation is generally a popular and default method for up/down sampling.
Testing