Commit 1fca0ec
committed
[Helion + torch.compile] Handle multi-output templates in prologue fusion dtype heuristic
TemplateBuffer subclasses with MultiOutputLayout (e.g. Helion kernels)
don't have a single dtype. Add an explicit error in TemplateBuffer.dtype
for this case, and guard the scheduler's low-precision heuristic with
is_multi_outputs_template() so it skips the check rather than crashing.
[ghstack-poisoned]1 parent 6c88a20 commit 1fca0ec
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5257 | 5257 | | |
5258 | 5258 | | |
5259 | 5259 | | |
| 5260 | + | |
| 5261 | + | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
5260 | 5268 | | |
5261 | 5269 | | |
5262 | 5270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5593 | 5593 | | |
5594 | 5594 | | |
5595 | 5595 | | |
| 5596 | + | |
5596 | 5597 | | |
5597 | | - | |
| 5598 | + | |
| 5599 | + | |
5598 | 5600 | | |
5599 | 5601 | | |
5600 | 5602 | | |
| |||
0 commit comments