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

Function gguf_get_val_u16

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

Source from the content-addressed store, hash-verified

848}
849
850uint16_t gguf_get_val_u16(const struct gguf_context * ctx, int64_t key_id) {
851 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
852 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
853 return ctx->kv[key_id].get_val<uint16_t>();
854}
855
856int16_t gguf_get_val_i16(const struct gguf_context * ctx, int64_t key_id) {
857 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 3

gguf_mergeFunction · 0.85
llama_model_loaderMethod · 0.85
common_download_modelFunction · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by

no test coverage detected