Commit b42be8b
committed
Adds mask and bias handling to backward kernel block loop
Extends the memory advancement logic to include mask and bias tensors alongside the existing query tensor handling. This ensures all relevant tensors are properly synchronized when processing multiple blocks in the backward pass, maintaining consistency across attention computations.
The change mirrors the query tensor advancement pattern by updating pointers and copying data for both mask and bias tensors using the same block-based iteration approach.1 parent 8c5bcff commit b42be8b
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
| 882 | + | |
883 | 883 | | |
| 884 | + | |
| 885 | + | |
884 | 886 | | |
885 | 887 | | |
886 | 888 | | |
887 | 889 | | |
888 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
889 | 903 | | |
890 | 904 | | |
891 | 905 | | |
| |||
0 commit comments