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

Function gguf_set_val_i8

ggml.c:20000–20005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19998}
19999
20000void gguf_set_val_i8(struct gguf_context * ctx, const char * key, int8_t val) {
20001 const int idx = gguf_get_or_add_key(ctx, key);
20002
20003 ctx->kv[idx].type = GGUF_TYPE_INT8;
20004 ctx->kv[idx].value.int8 = val;
20005}
20006
20007void gguf_set_val_u16(struct gguf_context * ctx, const char * key, uint16_t val) {
20008 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