MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / gguf_get_arr_data

Function gguf_get_arr_data

subprojects/llama.cpp/ggml/src/gguf.cpp:814–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814const void * gguf_get_arr_data(const struct gguf_context * ctx, int64_t key_id) {
815 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
816 GGML_ASSERT(ctx->kv[key_id].get_type() != GGUF_TYPE_STRING);
817 return ctx->kv[key_id].data.data();
818}
819
820const char * gguf_get_arr_str(const struct gguf_context * ctx, int64_t key_id, size_t i) {
821 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 9

gguf_kv_to_strFunction · 0.85
load_hparamsMethod · 0.85
get_arr_intMethod · 0.85
gguf_kv_to_strFunction · 0.85
loadMethod · 0.85
getterMethod · 0.85
handcrafted_check_kvFunction · 0.85
all_kv_in_otherFunction · 0.85

Calls 3

gguf_get_n_kvFunction · 0.85
get_typeMethod · 0.45
dataMethod · 0.45

Tested by 2

handcrafted_check_kvFunction · 0.68
all_kv_in_otherFunction · 0.68