Commit 0ed5508
authored
Qualcomm AI Engine Direct - Fix Full (pytorch#19359)
### Summary
Based on reported issue:
pytorch#19179
2 mathematically equivalent model in nn.Module lowered both lowered to
QNN, however, 1 accuracy is good while another is bad. Debugged with
qnn_intermediate_debugger and targeted that accuracy drop is possibly
caused by `full` operation. Took a look and noticed the op builder did
not take layout transform into consideration.
<img width="1785" height="1171" alt="image"
src="https://github.com/user-attachments/assets/c8ca4cf6-b242-4171-a8ee-3595e0bcd376"
/>
### Test plan
Passing tests under test_qnn_delegate.py and fix issue in:
pytorch#191791 parent 2d7ffad commit 0ed5508
4 files changed
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
878 | 903 | | |
879 | 904 | | |
880 | 905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2351 | 2351 | | |
2352 | 2352 | | |
2353 | 2353 | | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
2354 | 2365 | | |
2355 | 2366 | | |
2356 | 2367 | | |
| |||
5270 | 5281 | | |
5271 | 5282 | | |
5272 | 5283 | | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
| 5295 | + | |
| 5296 | + | |
5273 | 5297 | | |
5274 | 5298 | | |
5275 | 5299 | | |
| |||
0 commit comments