aboutsummaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-04-29 19:28:36 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-04-29 19:28:36 +0300
commit0b5a9350993e6fc8be45dc2a3eafc1fd0812d392 (patch)
tree08461db2e3a4d6a40227fc6c678e7edecd775363 /ggml.c
parentec728e44d7488c2da3560970317708b2b12b9c04 (diff)
ggml : fix visibility and unused warnings
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ggml.c b/ggml.c
index 6b92371..ebbaf11 100644
--- a/ggml.c
+++ b/ggml.c
@@ -9124,7 +9124,7 @@ static void ggml_compute_forward_alibi_f32(
//const int nb3 = src0->nb[3];
assert(nb0 == sizeof(float));
- assert(ne1+n_past == ne0);
+ assert(ne1 + n_past == ne0); (void) n_past;
// add alibi to src0 (KQ_scaled)
const int n_heads_log2_floor = 1 << (int) floor(log2(n_head));
@@ -9185,7 +9185,7 @@ static void ggml_compute_forward_alibi_f16(
//const int nb3 = src0->nb[3];
assert(nb0 == sizeof(ggml_fp16_t));
- assert(ne1+n_past == ne0);
+ assert(ne1 + n_past == ne0); (void) n_past;
// add alibi to src0 (KQ_scaled)
const int n_heads_log2_floor = 1 << (int) floor(log2(n_head));