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

Function gguf_get_val_u8

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

Source from the content-addressed store, hash-verified

836}
837
838uint8_t gguf_get_val_u8(const struct gguf_context * ctx, int64_t key_id) {
839 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
840 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
841 return ctx->kv[key_id].get_val<uint8_t>();
842}
843
844int8_t gguf_get_val_i8(const struct gguf_context * ctx, int64_t key_id) {
845 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers

nothing calls this directly

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by

no test coverage detected