-
Notifications
You must be signed in to change notification settings - Fork 445
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
feat: expand onnx import #1813
feat: expand onnx import #1813
Conversation
10cda31
to
95c40fd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1813 +/- ##
==========================================
- Coverage 86.44% 86.43% -0.02%
==========================================
Files 759 762 +3
Lines 87777 88099 +322
==========================================
+ Hits 75880 76147 +267
- Misses 11897 11952 +55 ☔ 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.
Looks good! Thank you for your contribution.
Minor. We should remove a case when we extract shape
from Expand node attributes. Spec does not have it compared to other node types. Probably it was left from copying.
Once this is done, I believe we can merge it.
} else { | ||
node.attrs.get("shape").cloned().map(|v| v.into_i64s()) |
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.
This is not applicable for Expand since there is no attribute shape
the spec: https://onnx.ai/onnx/operators/onnx__Expand.html. So we should remove it.
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.
Yes, you're right! I will get rid of it:)
95c40fd
to
c282d08
Compare
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.
Looks Good To Me
Thank you for your contribution!
* feat: added expand to import
Changes
Include the expand operator to burn-import
Testing
Manual
cargo test expand
Related Issues
#1714