fix bug in threaded indices calculation of ggml_compute_forward_flash_attn_back_f32
This commit is contained in:
parent
e829421eda
commit
7aa10d0518
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -13545,7 +13545,7 @@ static void ggml_compute_forward_flash_attn_back_f32(
|
|||
for (int ir = ir0; ir < ir1; ++ir) {
|
||||
// q indices
|
||||
const int iq3 = ir/(neq2);
|
||||
const int iq2 = (ir - iq3*neq2)/neq2;
|
||||
const int iq2 = ir - iq3*neq2;
|
||||
for ( int iq1 = 0; iq1 < neq1; ++iq1) {
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue