We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982e811 commit 9c7c7f6Copy full SHA for 9c7c7f6
ggml/src/ggml.c
@@ -3577,10 +3577,11 @@ static struct ggml_tensor * ggml_rope_impl(
3577
memcpy(params + 8, &attn_factor, sizeof(float));
3578
memcpy(params + 9, &beta_fast, sizeof(float));
3579
memcpy(params + 10, &beta_slow, sizeof(float));
3580
- if (mrope_used)
+ if (mrope_used) {
3581
memcpy(params + 11, sections, sizeof(int32_t) * GGML_MROPE_SECTIONS);
3582
- else
+ } else {
3583
memset(params + 11, 0, sizeof(int32_t) * GGML_MROPE_SECTIONS);
3584
+ }
3585
ggml_set_op_params(result, params, sizeof(params));
3586
3587
result->op = GGML_OP_ROPE;
0 commit comments