-
Notifications
You must be signed in to change notification settings - Fork 482
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
Implement tensor.recip() function to calculate elementwise reciprocals #953
Conversation
Could we also please update the following documentation with the new tensor op? |
I updated both, I hope, this makes sense |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #953 +/- ##
==========================================
+ Coverage 87.34% 87.37% +0.03%
==========================================
Files 493 495 +2
Lines 50132 50269 +137
==========================================
+ Hits 43788 43923 +135
- Misses 6344 6346 +2 ☔ View full report in Codecov by Sentry. |
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.
Overall looks good. One unit test is missing for autodiff.
@nathanielsimard would know more about the fusion part since it's new to me.
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 ! Thanks for the contribution :)
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.
Thank you! Approved.
Welcome! And thank you for the quick reviews! |
Pull Request Template
Checklist
run-checks
script has been executed.Related Issues/PRs
Provide links to relevant issues and dependent PRs.
Changes
There was no recip() method on the tensor, which is a common feature in other tensor libraries to calculate elementwise reciprocals.
Testing
Unit tests