Skip to content

Commit d6ac931

Browse files
author
Joan Martinez
committed
fix: fix small detail
1 parent 795ff1d commit d6ac931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12258,7 +12258,7 @@ static void ggml_compute_forward_soft_max_f32(
1225812258
const float slope = h < n_head_log2 ? powf(m0, h + 1) : powf(m1, 2*(h - n_head_log2) + 1);
1225912259

1226012260
for (int i = 0; i < nc; i++) {
12261-
if (pos == NULL) {
12261+
if (pos != NULL) {
1226212262
wp[i] = wp[i] + pos[i];
1226312263
} else {
1226412264
wp[i] = wp[i] - slope*abs(i1%nc - i);

0 commit comments

Comments
 (0)