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

Function gguf_set_val_i16

ggml.c:20014–20019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20012}
20013
20014void gguf_set_val_i16(struct gguf_context * ctx, const char * key, int16_t val) {
20015 const int idx = gguf_get_or_add_key(ctx, key);
20016
20017 ctx->kv[idx].type = GGUF_TYPE_INT16;
20018 ctx->kv[idx].value.int16 = val;
20019}
20020
20021void gguf_set_val_u32(struct gguf_context * ctx, const char * key, uint32_t val) {
20022 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