Commit efcc690
committed
_aten_to_core: gate si32 arange path on all operands being integer-typed
Checking only start.type.element_type was insufficient: mixed-type calls
like arange(0, 5, 0.5) have int start/end but float step, so the old
guard would select si32 and truncate step (0.5 → 0), producing a
degenerate range. Now all three operands must be integer-typed for the
static-shape si32 path; any float operand falls back to target_type.
Adds test_mixed_int_float_operands to cover this case.1 parent e8dac1d commit efcc690
2 files changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
654 | | - | |
| 653 | + | |
| 654 | + | |
655 | 655 | | |
| 656 | + | |
656 | 657 | | |
657 | 658 | | |
658 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
351 | 364 | | |
352 | 365 | | |
353 | 366 | | |
| |||
0 commit comments