Commit 8ee2566
committed
Preserve constexprs returned from functions
It is very easy to convert a constexpr into a tensor but difficult to go
in the reverse direction. The current behavior makes it very difficult
to support certain patterns without ceremony. While technically a
compatibility break, I expect this to be rarely hit because many
operations (like assignment) decay constexprs to tensors anyway.1 parent 49e174c commit 8ee2566
File tree
2 files changed
+16
-1
lines changed- python
- test/unit/language
- triton/compiler
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
0 commit comments