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

Function gguf_get_val_f32

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

Source from the content-addressed store, hash-verified

872}
873
874float gguf_get_val_f32(const struct gguf_context * ctx, int64_t key_id) {
875 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
876 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
877 return ctx->kv[key_id].get_val<float>();
878}
879
880uint64_t gguf_get_val_u64(const struct gguf_context * ctx, int64_t key_id) {
881 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 3

get_kv_f32Function · 0.85
get_f32Method · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by

no test coverage detected