Commit 8c5bcff
committed
Adds mask and bias copying to backward kernel loop
Extends the existing query tensor copying logic to also handle mask and bias tensors during backward pass computation.
Updates pointer advancement to include mask and bias row strides, ensuring proper memory alignment across iterations.
Adds bounds checking for out-of-bounds elements to prevent memory access violations when copying mask and bias data.1 parent 2a9b919 commit 8c5bcff
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
758 | 760 | | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
762 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
763 | 777 | | |
764 | 778 | | |
765 | 779 | | |
| |||
0 commit comments