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

Function gguf_get_val_u32

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

Source from the content-addressed store, hash-verified

860}
861
862uint32_t gguf_get_val_u32(const struct gguf_context * ctx, int64_t key_id) {
863 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
864 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
865 return ctx->kv[key_id].get_val<uint32_t>();
866}
867
868int32_t gguf_get_val_i32(const struct gguf_context * ctx, int64_t key_id) {
869 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 4

get_u32Method · 0.85
load_imatrixFunction · 0.85
gguf_init_from_file_implFunction · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by 1