Commit 5a09289
committed
[BugFix] Fix SliceSampler for torch.compile compatibility
Convert seq_length to tensor before torch.where operations to avoid
torch.compile inductor C++ codegen bugs with mixed scalar/tensor int64
in blendv operations.
ghstack-source-id: 3ee8327
Pull-Request: #32981 parent 4507f16 commit 5a09289
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1559 | 1566 | | |
1560 | | - | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
1561 | 1571 | | |
1562 | | - | |
1563 | 1572 | | |
1564 | 1573 | | |
1565 | 1574 | | |
1566 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1567 | 1583 | | |
1568 | 1584 | | |
1569 | 1585 | | |
| |||
0 commit comments