From 34469b9ea79e453445bf3434c534ccd51acb8abe Mon Sep 17 00:00:00 2001 From: klosax <131523366+klosax@users.noreply.github.com> Date: Sat, 29 Jul 2023 20:36:06 +0200 Subject: [PATCH] ggml.h : get array str and f32 --- ggml.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml.h b/ggml.h index a72c82a33..029650851 100644 --- a/ggml.h +++ b/ggml.h @@ -1657,6 +1657,9 @@ extern "C" { GGML_API const char * gguf_get_key (struct gguf_context * ctx, int i); GGML_API void gguf_get_val (struct gguf_context * ctx, int i, void * val); + GGML_API const char * gguf_get_arr_str(struct gguf_context * ctx, int key_id, int i); + GGML_API float gguf_get_arr_f32(struct gguf_context * ctx, int key_id, int i); + GGML_API uint8_t gguf_get_val_u8 (struct gguf_context * ctx, int i); GGML_API int8_t gguf_get_val_i8 (struct gguf_context * ctx, int i); GGML_API uint16_t gguf_get_val_u16 (struct gguf_context * ctx, int i);