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

Function gguf_get_val_str

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

Source from the content-addressed store, hash-verified

902}
903
904const char * gguf_get_val_str(const struct gguf_context * ctx, int64_t key_id) {
905 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
906 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
907 return ctx->kv[key_id].get_val<std::string>().c_str();
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));

Callers 8

get_kv_strFunction · 0.85
gguf_kv_to_strFunction · 0.85
get_stringMethod · 0.85
gguf_kv_to_strFunction · 0.85
getterMethod · 0.85
handcrafted_check_kvFunction · 0.85
all_kv_in_otherFunction · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by 2

handcrafted_check_kvFunction · 0.68
all_kv_in_otherFunction · 0.68