gguf : minor stuff

This commit is contained in:
Georgi Gerganov 2023-08-07 19:02:18 +03:00
parent 1da82c551f
commit 8083ae347a
2 changed files with 5 additions and 10 deletions

4
ggml.c
View file

@ -19031,10 +19031,6 @@ const char * gguf_get_key(struct gguf_context * ctx, int i) {
return ctx->header.kv[i].key.data;
}
enum gguf_type gguf_get_type(struct gguf_context * ctx, int i) {
return ctx->header.kv[i].type;
}
const char * gguf_get_arr_str(struct gguf_context * ctx, int key_id, int i) {
struct gguf_kv * kv = &ctx->header.kv[key_id];
struct gguf_str * str = &((struct gguf_str *) kv->value.arr.data)[i];