MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / gguf_set_val_bool

Function gguf_set_val_bool

ggml.c:20063–20068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20061}
20062
20063void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val) {
20064 const int idx = gguf_get_or_add_key(ctx, key);
20065
20066 ctx->kv[idx].type = GGUF_TYPE_BOOL;
20067 ctx->kv[idx].value.bool_ = val;
20068}
20069
20070void gguf_set_val_str(struct gguf_context * ctx, const char * key, const char * val) {
20071 const int idx = gguf_get_or_add_key(ctx, key);

Callers 3

gguf_set_kvFunction · 0.70
save_opt_context_ggufFunction · 0.50
gguf_ex_writeFunction · 0.50

Calls 1

gguf_get_or_add_keyFunction · 0.85

Tested by

no test coverage detected