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

Remainder operator doc #1836

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

Zirconium419122
Copy link
Contributor

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

Related PR: 1726

Changes

Problem: The tensor.remainder_scalar() method has been implemented in a previous PR. However, its not possible to use the % operator, e.g., tensor % 2.0.
Changes: Added ops::Rem trait implementation for Tensor.

Testing

Added a test for Tensor that makes use of the % operator.

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.44%. Comparing base (152509c) to head (c0e5459).
Report is 53 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1836      +/-   ##
==========================================
- Coverage   86.47%   86.44%   -0.03%     
==========================================
  Files         698      759      +61     
  Lines       82874    87791    +4917     
==========================================
+ Hits        71667    75894    +4227     
- Misses      11207    11897     +690     

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

@antimora antimora mentioned this pull request Jun 1, 2024
2 tasks
Copy link
Collaborator

@antimora antimora left a comment

Choose a reason for hiding this comment

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

Approving it. I went ahead and merged #1726 so this PR is mostly about adding the missing documentation.

@antimora antimora changed the title Feat remainder operator Remainder operator doc Jun 1, 2024
@antimora antimora merged commit e407c76 into tracel-ai:main Jun 1, 2024
14 checks passed
LilDojd pushed a commit to LilDojd/burn that referenced this pull request Jun 5, 2024
* Adds remainder ops implementation for Tensor.

* Adds test for % operator.

* Add remainder and % operator entry in tensor.md

---------

Co-authored-by: Jonas Kantic <jk.mail@posteo.net>
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.

3 participants