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

Function gguf_set_val_f64

ggml.c:20056–20061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20054}
20055
20056void gguf_set_val_f64(struct gguf_context * ctx, const char * key, double val) {
20057 const int idx = gguf_get_or_add_key(ctx, key);
20058
20059 ctx->kv[idx].type = GGUF_TYPE_FLOAT64;
20060 ctx->kv[idx].value.float64 = val;
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);

Callers 2

gguf_set_kvFunction · 0.70
gguf_ex_writeFunction · 0.50

Calls 1

gguf_get_or_add_keyFunction · 0.85

Tested by

no test coverage detected