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

Function gguf_get_arr_data

smallthinker/ggml/src/gguf.cpp:795–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795const void * gguf_get_arr_data(const struct gguf_context * ctx, int64_t key_id) {
796 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
797 GGML_ASSERT(ctx->kv[key_id].get_type() != GGUF_TYPE_STRING);
798 return ctx->kv[key_id].data.data();
799}
800
801const char * gguf_get_arr_str(const struct gguf_context * ctx, int64_t key_id, size_t i) {
802 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 9

gguf_kv_to_strFunction · 0.50
load_hparamsMethod · 0.50
get_arr_intMethod · 0.50
gguf_kv_to_strFunction · 0.50
loadMethod · 0.50
getterMethod · 0.50
handcrafted_check_kvFunction · 0.50
all_kv_in_otherFunction · 0.50
load_vocabFunction · 0.50

Calls 3

gguf_get_n_kvFunction · 0.70
get_typeMethod · 0.45
dataMethod · 0.45

Tested by 2

handcrafted_check_kvFunction · 0.40
all_kv_in_otherFunction · 0.40