ggml.h : add gguf_find_key

This commit is contained in:
klosax 2023-07-28 22:28:56 +02:00 committed by GitHub
parent e9d2990c3d
commit 78f57ffd90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
ggml.h
View file

@ -1653,6 +1653,7 @@ extern "C" {
GGML_API void * gguf_get_data (struct gguf_context * ctx); 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_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 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 void gguf_get_val (struct gguf_context * ctx, int i, void * val);