mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-02 09:12:03 +00:00
gguf : add gguf_find_key (#2438)
* gguf.cpp : find key example * ggml.h : add gguf_find_key * ggml.c : add gguf_find_key
This commit is contained in:
1
ggml.h
1
ggml.h
@@ -1653,6 +1653,7 @@ extern "C" {
|
||||
GGML_API void * gguf_get_data (struct gguf_context * ctx);
|
||||
|
||||
GGML_API int gguf_get_n_kv(struct gguf_context * ctx);
|
||||
GGML_API int gguf_find_key(struct gguf_context * ctx, const char * key);
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user