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

Add reduce sum onnx ops to burn imports #1723

Merged

Conversation

AntBlo
Copy link
Contributor

@AntBlo AntBlo commented May 5, 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

#1714

Changes

Implements the ReduceSum ONNX Op.

Testing

Wrote tests for 11 and 13 ReduceSum opset

Copy link

codecov bot commented May 5, 2024

Codecov Report

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

Project coverage is 86.49%. Comparing base (152509c) to head (1be010a).
Report is 1 commits behind head on main.

❗ Current head 1be010a differs from pull request most recent head 4da8d3d. Consider uploading reports for the commit 4da8d3d to get more accurate results

Files Patch % Lines
crates/burn-import/src/onnx/dim_inference.rs 82.75% 5 Missing ⚠️
crates/burn-import/src/onnx/op_configuration.rs 87.80% 5 Missing ⚠️
crates/burn-import/src/burn/node/unary.rs 96.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1723      +/-   ##
==========================================
+ Coverage   86.47%   86.49%   +0.01%     
==========================================
  Files         698      698              
  Lines       82874    83041     +167     
==========================================
+ Hits        71667    71827     +160     
- Misses      11207    11214       +7     

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

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.

Thank you for your contribution with ONNX ops for Burn. It looks perfect except one left out debugger line. See my comment.

It's ready to be merged once this line is removed.

@@ -798,6 +798,61 @@ pub fn reduce_mean_config(node: &Node) -> Option<usize> {
}
}

pub fn reduce_sum_config(node: &Node) -> Option<usize> {
dbg!(&node);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably by accident this is checked in: dbg!(&node)l

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, yeah! Sorry, should be gone now

@AntBlo AntBlo force-pushed the add-reduce-sum-onnx-ops-to-burn-imports branch from 1be010a to 4da8d3d Compare May 6, 2024 14:15
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.

LGTM

Thank you for your contribution!

@antimora antimora merged commit fb13503 into tracel-ai:main May 6, 2024
12 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.

2 participants