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

Adding max import #1769

Merged
merged 2 commits into from
May 22, 2024
Merged

Adding max import #1769

merged 2 commits into from
May 22, 2024

Conversation

JachymPutta
Copy link
Contributor

@JachymPutta JachymPutta commented May 14, 2024

Pull Request Template

Checklist

  • Confirmed that run-checks all script has been executed. -- run-check all gives a bunch of syntax errors
  • Made sure the book is up to date with changes in this PR.

Related Issues/PRs

Provide links to relevant issues and dependent PRs.

Changes

Followed the steps described in contributor-book

Testing

Ran the tests manually cargo test max

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.

Thanks for helping on the ONNX track!

If you look at the Max operator spec, it actually corresponds to the element-wise maximum between two tensors. This is equivalent to tensor.max_pair(other) or torch.maximum(tensor, other).

Going through your implementation, it seems to correspond to ReduceMax which is already implemented.

@JachymPutta
Copy link
Contributor Author

Oh, you're right, my bad, let me fix that

@laggui
Copy link
Member

laggui commented May 15, 2024

Oh, you're right, my bad, let me fix that

It's all good 🙏

Honestly the ONNX spec can be quite confusing.. and there's a bunch of ops 😅

@JachymPutta
Copy link
Contributor Author

Should be fixed!

Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.41%. Comparing base (1073752) to head (131b2f6).
Report is 10 commits behind head on main.

Files Patch % Lines
crates/burn-import/src/burn/node/binary.rs 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1769      +/-   ##
==========================================
- Coverage   86.61%   86.41%   -0.21%     
==========================================
  Files         700      734      +34     
  Lines       83423    85607    +2184     
==========================================
+ Hits        72258    73978    +1720     
- Misses      11165    11629     +464     

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

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 the addition 🙂

@laggui laggui merged commit 8c01444 into tracel-ai:main May 22, 2024
14 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.

None yet

3 participants