-
Notifications
You must be signed in to change notification settings - Fork 619
[Tosa] : Add support for negative indices in index.tensor and index.Tensor_hacked_twin for TorchToTosa lowering. #3790
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
Conversation
|
Since I don't have permission to request reviews yet, I am tagging you @AmosLewis as you were the original author for adding support for |
ab6290f to
5c248ff
Compare
|
Hi @eric-k256 can you please review this change or add appropriate reviewers? Thanks! |
|
I've added @sjarus as a reviewer. It might be slightly delayed as this week is US LLVM dev conference. While waiting, it appears that your llvm external is out of date. It would be helpful to update that to speed the review. |
5c248ff to
efea881
Compare
Thanks, Eric. I've updated my branch rebasing main. |
|
Hi @sahas3 thanks so much for this contribution! I took a quick look at this. I'm curious about whether this code can also have compile-time and run-time forms, with the former predicated on being able to access the list at compile time and modifying it at compile time rather than by materializing the check in IR ? |
|
Thanks for the review @sjarus. Are you thinking of possible optimization in scenarios like below? producing the below output with In the full So I think branching in this pass based on constness of |
|
Thanks, that looks pretty sane to me. Approving. |
xfails_setforfx_importer_tosaconfig to lockdown the behavior with e2e test as well."THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY."