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

Function gguf_set_val_i32

ggml.c:20028–20033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20026}
20027
20028void gguf_set_val_i32(struct gguf_context * ctx, const char * key, int32_t val) {
20029 const int idx = gguf_get_or_add_key(ctx, key);
20030
20031 ctx->kv[idx].type = GGUF_TYPE_INT32;
20032 ctx->kv[idx].value.int32 = val;
20033}
20034
20035void gguf_set_val_f32(struct gguf_context * ctx, const char * key, float val) {
20036 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