Commit 6f2f41c
[FlexAttention] explicilty create grad_q w/ strides (pytorch#153641)
[FlexAttention] explicilty create grad_q w/ strides (pytorch#152641)
Fixes: pytorch#147463
There is a mismatch between inductor's lowering for empty_like and it does not match the behavior of eager. The strides do not match preserve format
pytorch#144699
Pull Request resolved: pytorch#152641
Approved by: https://github.com/xmfan
(cherry picked from commit a6ea63a)
Co-authored-by: drisspg <[email protected]>1 parent 0073e33 commit 6f2f41c
File tree
2 files changed
+11
-4
lines changed- torch
- _higher_order_ops
- _inductor/kernel
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
| 788 | + | |
788 | 789 | | |
789 | 790 | | |
790 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
2524 | 2523 | | |
2525 | 2524 | | |
2526 | 2525 | | |
2527 | | - | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
2528 | 2534 | | |
2529 | 2535 | | |
2530 | 2536 | | |
| |||
0 commit comments