Skip to content

Commit

Permalink
ggml : fix visibility and unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Apr 29, 2023
1 parent ec728e4 commit 0b5a935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions ggml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0b5a935

Please sign in to comment.