Commit ce2d45d
[AOTI] Handle empty input args (pytorch#114682)
Summary: When the model takes no inputs, AOTInductor relies on checking weights to figure out which device to compile the model into. Currently recording buffer device type happens too late, and this PR fixes that.
Pull Request resolved: pytorch#114682
Approved by: https://github.com/chenyang781 parent 516691c commit ce2d45d
File tree
4 files changed
+26
-16
lines changed- test/inductor
- torch/_inductor
4 files changed
+26
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1468 | 1482 | | |
1469 | 1483 | | |
1470 | 1484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
| |||
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
645 | 649 | | |
646 | 650 | | |
647 | 651 | | |
648 | | - | |
649 | | - | |
| 652 | + | |
650 | 653 | | |
651 | 654 | | |
652 | 655 | | |
| |||
979 | 982 | | |
980 | 983 | | |
981 | 984 | | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | 985 | | |
987 | 986 | | |
988 | 987 | | |
| |||
1015 | 1014 | | |
1016 | 1015 | | |
1017 | 1016 | | |
1018 | | - | |
| 1017 | + | |
1019 | 1018 | | |
1020 | 1019 | | |
1021 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4160 | 4160 | | |
4161 | 4161 | | |
4162 | 4162 | | |
4163 | | - | |
4164 | | - | |
4165 | | - | |
4166 | | - | |
| 4163 | + | |
| 4164 | + | |
4167 | 4165 | | |
4168 | 4166 | | |
4169 | 4167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2130 | 2130 | | |
2131 | 2131 | | |
2132 | 2132 | | |
2133 | | - | |
2134 | | - | |
| 2133 | + | |
2135 | 2134 | | |
2136 | 2135 | | |
2137 | 2136 | | |
| |||
0 commit comments