Commit 3ac4191
committed
[TorchToLinalg] Fix the lowering of
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.AtenIndexTensorHackedTwinOp
1 parent 46c3888 commit 3ac4191
File tree
2 files changed
+26
-0
lines changed- lib/Conversion/TorchToLinalg
- test/Conversion/TorchToLinalg
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
510 | 518 | | |
511 | 519 | | |
512 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
0 commit comments