-
Notifications
You must be signed in to change notification settings - Fork 519
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
[TOSA] Add aten.Index.Tensor support #1771
Conversation
6321ff5
to
4b57b24
Compare
e2e fail, working on fix it. |
fda98b3
to
e8f8b7c
Compare
The e2e bug is fixed. |
40e46b4
to
6ec4143
Compare
Add a check to fix IndexTensorMultiInputContiguousCenter e2e test segfault
|
90b3c34
to
0b89ed1
Compare
0b89ed1
to
b51e007
Compare
b51e007
to
159ef0a
Compare
Removing myself from reviewers. I will let @eric-k256 continue leading the review of this patch (happy to help if questions/issues arise) |
Find this error in nod-ai/SHARK-Studio#494
torch.ops.aten.index(input, (index, ))
We could use the tf gather_nd(which is already implemented in tosa) to get the torch.index. The trick is to expand/unsqueeze the last dim of the index.
python code for algorithm explanation:
Final result should looks like this: