Skip to content

Avoid 0 denominator in interpolate frac #2224

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

Merged
merged 2 commits into from
Sep 1, 2024
Merged

Conversation

laggui
Copy link
Member

@laggui laggui commented Aug 30, 2024

Checklist

  • Confirmed that run-checks all script has been executed.

Related Issues/PRs

Fixes #2080

Changes

Denominator in fraction would be 0 for output size of 1, leading to NaN.

Testing

Enabled previously ignored tests

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.87%. Comparing base (a88c69a) to head (54db22e).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2224      +/-   ##
==========================================
+ Coverage   85.74%   85.87%   +0.12%     
==========================================
  Files         707      707              
  Lines       89565    89820     +255     
==========================================
+ Hits        76801    77131     +330     
+ Misses      12764    12689      -75     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nathanielsimard nathanielsimard merged commit 09a15e7 into main Sep 1, 2024
10 checks passed
@nathanielsimard nathanielsimard deleted the fix/interpolate/1d branch September 1, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NaN for [N, C, 1, W] interpolate inputs with bilinear and bicubic modes for burn-wgpu and burn-ndarray backends
2 participants