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

Function gguf_get_val_data

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

Source from the content-addressed store, hash-verified

908}
909
910const void * gguf_get_val_data(const struct gguf_context * ctx, int64_t key_id) {
911 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
912 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
913 GGML_ASSERT(ctx->kv[key_id].get_type() != GGUF_TYPE_STRING);
914 return ctx->kv[key_id].data.data();
915}
916
917int64_t gguf_get_n_tensors(const struct gguf_context * ctx) {
918 return ctx->info.size();

Callers 4

gguf_kv_to_strFunction · 0.85
gguf_kv_to_strFunction · 0.85
handcrafted_check_kvFunction · 0.85
all_kv_in_otherFunction · 0.85

Calls 4

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80
get_typeMethod · 0.45
dataMethod · 0.45

Tested by 2

handcrafted_check_kvFunction · 0.68
all_kv_in_otherFunction · 0.68