diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-29 19:28:36 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-29 19:28:36 +0300 |
commit | 0b5a9350993e6fc8be45dc2a3eafc1fd0812d392 (patch) | |
tree | 08461db2e3a4d6a40227fc6c678e7edecd775363 | |
parent | ec728e44d7488c2da3560970317708b2b12b9c04 (diff) |
ggml : fix visibility and unused warnings
-rw-r--r-- | ggml.c | 4 | ||||
-rw-r--r-- | ggml.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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)); @@ -701,8 +701,8 @@ extern "C" { struct ggml_tensor * c1); // Mapping operations - GGML_API typedef void (*ggml_unary_op_f32_t)(const int, float *, const float *); - GGML_API typedef void (*ggml_binary_op_f32_t)(const int, float *, const float *, const float *); + typedef void (*ggml_unary_op_f32_t)(const int, float *, const float *); + typedef void (*ggml_binary_op_f32_t)(const int, float *, const float *, const float *); GGML_API struct ggml_tensor * ggml_map_unary_f32( struct ggml_context * ctx, |