Commit eae9751
Fix linalg_eigvals invalid use of composite dispatch key (pytorch#121142)
`linalg_eigvals_out` calls into a dispatch stub, so only supports CPU and CUDA
strided tensors but incorrectly claimed to be a composite op. `linalg_eigvals`
also shouldn't defer to the out variant inside a `CompositeImplicitAutograd` op
as not all types support out variants. Instead, I add a new helper
`_linalg_eigvals` which does the same thing in a non-composite operator.
Pull Request resolved: pytorch#121142
Approved by: https://github.com/lezcano1 parent 393b4ab commit eae9751
7 files changed
Lines changed: 41 additions & 9 deletions
File tree
- aten/src/ATen/native
- test
- expect
- functorch
- torch
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
3100 | 3102 | | |
3101 | 3103 | | |
3102 | 3104 | | |
| 3105 | + | |
| 3106 | + | |
3103 | 3107 | | |
| 3108 | + | |
3104 | 3109 | | |
3105 | 3110 | | |
3106 | | - | |
3107 | | - | |
3108 | | - | |
| 3111 | + | |
3109 | 3112 | | |
3110 | 3113 | | |
3111 | 3114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13812 | 13812 | | |
13813 | 13813 | | |
13814 | 13814 | | |
| 13815 | + | |
| 13816 | + | |
| 13817 | + | |
| 13818 | + | |
| 13819 | + | |
13815 | 13820 | | |
13816 | 13821 | | |
13817 | 13822 | | |
13818 | 13823 | | |
13819 | 13824 | | |
| 13825 | + | |
| 13826 | + | |
13820 | 13827 | | |
13821 | 13828 | | |
13822 | 13829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
844 | 845 | | |
845 | 846 | | |
846 | 847 | | |
| 848 | + | |
847 | 849 | | |
848 | 850 | | |
849 | 851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4469 | 4469 | | |
4470 | 4470 | | |
4471 | 4471 | | |
4472 | | - | |
4473 | 4472 | | |
4474 | 4473 | | |
4475 | 4474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
655 | | - | |
656 | 654 | | |
657 | 655 | | |
658 | 656 | | |
| |||
800 | 798 | | |
801 | 799 | | |
802 | 800 | | |
803 | | - | |
804 | 801 | | |
805 | 802 | | |
806 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1875 | 1875 | | |
1876 | 1876 | | |
1877 | 1877 | | |
1878 | | - | |
1879 | | - | |
1880 | 1878 | | |
1881 | 1879 | | |
1882 | 1880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
791 | 817 | | |
792 | 818 | | |
793 | 819 | | |
| |||
0 commit comments