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

Function gguf_set_val_i64

ggml.c:20049–20054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20047}
20048
20049void gguf_set_val_i64(struct gguf_context * ctx, const char * key, int64_t val) {
20050 const int idx = gguf_get_or_add_key(ctx, key);
20051
20052 ctx->kv[idx].type = GGUF_TYPE_INT64;
20053 ctx->kv[idx].value.int64 = val;
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);

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