Commit 25082e4
committed
address PR review feedback
Fix adjacent latent same-class bug: replace_div_tensor_mode with rounding_mode=None used the generic integer-stays-integer promotion rule instead of promoting to the node output float type before dividing.
Add torch.true_divide(int, int) test to directly cover the true_divide.Tensor resolver rewiring.
Add torch.div(int, int, rounding_mode=None) test to cover the div_tensor_mode fix.1 parent 629cce3 commit 25082e4
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
877 | 886 | | |
878 | 887 | | |
879 | 888 | | |
880 | 889 | | |
881 | | - | |
882 | | - | |
883 | | - | |
| 890 | + | |
884 | 891 | | |
885 | 892 | | |
886 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1579 | 1604 | | |
1580 | 1605 | | |
1581 | 1606 | | |
| |||
0 commit comments