Skip to content

[TorchToLinalg] Fix the lowering of AtenIndexTensorHackedTwinOp #4280

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pradhanaditya
Copy link

In some cases, the index operand may not be a 64-bit integer. To ensure type compatibility in arith.cmpi, the index operand should be sign-extended to 64 bits when required.

A minimal test case has been added to verify this behavior.

@pradhanaditya pradhanaditya force-pushed the aditya/fix-aten-index-tensor-hacked-twin branch 3 times, most recently from 11486d8 to 5c37c6e Compare July 23, 2025 05:46
In some cases, the index operand may not be a 64-bit integer.
To ensure type compatibility in `arith.cmpi`, the index operand
should be sign-extended to 64 bits when required.
@pradhanaditya pradhanaditya force-pushed the aditya/fix-aten-index-tensor-hacked-twin branch from 5c37c6e to 3ac4191 Compare July 24, 2025 03:33
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.

2 participants