Skip to content

Commit 9c7c7f6

Browse files
foldlggerganov
andauthored
Apply suggestions from code review
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 982e811 commit 9c7c7f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ggml/src/ggml.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,10 +3577,11 @@ static struct ggml_tensor * ggml_rope_impl(
35773577
memcpy(params + 8, &attn_factor, sizeof(float));
35783578
memcpy(params + 9, &beta_fast, sizeof(float));
35793579
memcpy(params + 10, &beta_slow, sizeof(float));
3580-
if (mrope_used)
3580+
if (mrope_used) {
35813581
memcpy(params + 11, sections, sizeof(int32_t) * GGML_MROPE_SECTIONS);
3582-
else
3582+
} else {
35833583
memset(params + 11, 0, sizeof(int32_t) * GGML_MROPE_SECTIONS);
3584+
}
35843585
ggml_set_op_params(result, params, sizeof(params));
35853586

35863587
result->op = GGML_OP_ROPE;

0 commit comments

Comments
 (0)