-
Notifications
You must be signed in to change notification settings - Fork 440
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/gather import #1843
Feat/gather import #1843
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1843 +/- ##
==========================================
+ Coverage 86.24% 86.26% +0.01%
==========================================
Files 767 768 +1
Lines 88575 88701 +126
==========================================
+ Hits 76394 76516 +122
- Misses 12181 12185 +4 ☔ 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.
LGTM
Thank you for your 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.
LGTM! Thanks for clearing up the confusion 😄
* Move and redirect GatherElements to new folders/nodes * Create PyTorch script for gather * Add onnx file for gather * Add a gather test to onnx_tests * Update gather.rs to use select * Rename codegen test * Update gather and gather_elements conversion functions * Validate rank of input node and update output * Add check for Gather
Pull Request Template
Checklist
run-checks all
script has been executed.Related Issues/PRs
#1714
Changes
Gather and GatherElements were separated into their own folders on the ONNX side. Confusingly, ONNX's
GatherElements
is equivalent to PyTorch/burn'sgather
function, while ONNX'sGather
seems to be equivalent to burn'sselect
. In PyTorch, the ONNXGather
is anindex_select
, which burn'sselect
more or less seems equivalent to when using 1D indexes.Testing
Added unit tests.