-
Notifications
You must be signed in to change notification settings - Fork 89
Improves implementation of aten_index_put #2641
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
base: main
Are you sure you want to change the base?
Conversation
… xadupre/input_put
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2641 +/- ##
=======================================
Coverage 70.43% 70.44%
=======================================
Files 224 224
Lines 26778 26863 +85
Branches 2680 2697 +17
=======================================
+ Hits 18862 18924 +62
- Misses 6985 6998 +13
- Partials 931 941 +10 ☔ View full report in Codecov by Sentry. |
|
Adding some pointers/info for my own clarification: |
| expand_value_shape = [] | ||
| for i, ind in enumerate(indices): | ||
| if isinstance(ind, torch.onnx._internal.exporter._tensors.SymbolicTensor): # pylint: disable=protected-access | ||
| ind.dtype = ir.DataType.INT64 |
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.
Why do we need the above line? Just wondering ... shouldn't it already have dtype set?
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.
Maybe it is not useful anymore but when I did this PR, it was needed.
From #2606.