Skip to content

[Torch] Fix AtenSelectIntOp crash for signless dense attr#4466

Merged
IanWood1 merged 1 commit intollvm:mainfrom
IanWood1:aten_select_int_crash
Feb 10, 2026
Merged

[Torch] Fix AtenSelectIntOp crash for signless dense attr#4466
IanWood1 merged 1 commit intollvm:mainfrom
IanWood1:aten_select_int_crash

Conversation

@IanWood1
Copy link
Contributor

@IanWood1 IanWood1 commented Feb 10, 2026

Fixes folder to return a DenseElementsAttr with the same element type as the original attr (not the return type). This allows TorchDialect::materializeConstant to handle creating the correct result type.

@IanWood1 IanWood1 force-pushed the aten_select_int_crash branch from 5037883 to af8c82a Compare February 10, 2026 20:37
@IanWood1 IanWood1 merged commit f048e31 into llvm:main Feb 10, 2026
3 checks passed
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