Explorar o código

ggml : fix build after #3329

Georgi Gerganov %!s(int64=2) %!d(string=hai) anos
pai
achega
0d152b37fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ggml.c

+ 1 - 0
ggml.c

@@ -13082,6 +13082,7 @@ static void ggml_compute_forward_alibi_f32(
         return;
     }
 
+    const int n_past = ((int32_t *) dst->op_params)[0]; UNUSED(n_past);
     const int n_head = ((int32_t *) dst->op_params)[1];
     float max_bias;
     memcpy(&max_bias, (int32_t *) dst->op_params + 2, sizeof(float));