MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / gguf_get_arr_str

Function gguf_get_arr_str

ggml.c:19872–19877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19870}
19871
19872const char * gguf_get_arr_str(const struct gguf_context * ctx, int key_id, int i) {
19873 GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_ARRAY);
19874 struct gguf_kv * kv = &ctx->kv[key_id];
19875 struct gguf_str * str = &((struct gguf_str *) kv->value.arr.data)[i];
19876 return str->data;
19877}
19878
19879int gguf_get_arr_n(const struct gguf_context * ctx, int key_id) {
19880 GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_ARRAY);

Callers 3

llm_load_vocabFunction · 0.70
save_llama_model_ggufFunction · 0.50
load_vocabFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected