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

Function gguf_get_val_bool

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

Source from the content-addressed store, hash-verified

896}
897
898bool gguf_get_val_bool(const struct gguf_context * ctx, int64_t key_id) {
899 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
900 GGML_ASSERT(ctx->kv[key_id].get_ne() == 1);
901 return ctx->kv[key_id].get_val<bool>();
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));

Callers 1

get_boolMethod · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_neMethod · 0.80

Tested by

no test coverage detected