Skip to content
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

Wrap indices to be within max range for as_strided + index_select #3902

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sahas3
Copy link
Contributor

@sahas3 sahas3 commented Dec 3, 2024

Found these issues when trying to lower the ExportedProgram generated from decomposing nn.GRU op in torch.

  • Added a new e2e test representing the root cause which involves a special configuration of as_strided to reproduce the issue. It requires the other ops in the repro to hit the issue.
  • For --config=onnx, index_select op was generated instead of as_strided which had the same issue as well.

notify : @justin-ngo-arm as you were the original author for the Tosa conversions of these ops.

@sahas3 sahas3 requested a review from sjarus December 3, 2024 15:31
Copy link
Collaborator

@sjarus sjarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOSA path looks ok. Please check for and address any XPASSes on all TOSA targets since they are not run by CI.

Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sahas3 Please rebase your PR, so that the CI can be run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants