Skip to content
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

fix: tensor prod and prod dim containing nan values #2515

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

quinton11
Copy link
Contributor

@quinton11 quinton11 commented Nov 19, 2024

Pull Request Template

Checklist

  • Confirmed that run-checks all script has been executed.
  • Made sure the book is up to date with changes in this PR.

Related Issues/PRs

Closes #2509

Changes

Added ndarray and jit-fusion backend implementations for both float_prod and float_prod_dim methods

Testing

Added a test for the prod method

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.95%. Comparing base (bff67dc) to head (9d36352).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2515      +/-   ##
==========================================
+ Coverage   82.87%   82.95%   +0.08%     
==========================================
  Files         814      816       +2     
  Lines      105383   105445      +62     
==========================================
+ Hits        87338    87476     +138     
+ Misses      18045    17969      -76     

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


🚨 Try these New Features:

@quinton11
Copy link
Contributor Author

@laggui @nathanielsimard

Copy link
Member

@laggui laggui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks for addressing the bug 🙂

@laggui laggui merged commit a0e8e4d into tracel-ai:main Nov 20, 2024
11 checks passed
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.

Tensor.prod returns a NaN when there is a negative value in the tensor
2 participants