Commit 1d49684
[Cherry-pick] Support sorting single-element tensors (#8040) (#571)
Summary:
Cherry-picked from upstream OAI repository.
Original Commit: 1d004a9
Original Author: Saagar Jha
Original Date: 2025-09-03 14:02:21 -0700
Original commit message:
```
Support sorting single-element tensors (#8040)
As per #6769, reshape([]) creates a scalar rather than a tensor. This
breaks the sorting algorithm, so special case this situation.
```
This PR was automatically cherry-picked from the upstream triton-lang/triton repository.
Pull Request resolved: #571
Reviewed By: dshi7
Differential Revision: D86150345
Pulled By: agron911
fbshipit-source-id: 2e96edf3f1b9f6d0694059169de005c5d9ebddf01 parent d0e6fa5 commit 1d49684
File tree
2 files changed
+4
-4
lines changed- python
- test/unit/language
- triton/language
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
0 commit comments