MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / gguf_remove_key

Function gguf_remove_key

external/ggml/src/gguf.cpp:1063–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063int64_t gguf_remove_key(struct gguf_context * ctx, const char * key) {
1064 const int64_t key_id = gguf_find_key(ctx, key);
1065 if (key_id >= 0) {
1066 ctx->kv.erase(ctx->kv.begin() + key_id);
1067 }
1068 return key_id;
1069}
1070
1071template<typename T>
1072static void gguf_check_reserved_keys(const std::string & key, const T val) {

Callers 14

gguf_set_val_u8Function · 0.85
gguf_set_val_i8Function · 0.85
gguf_set_val_u16Function · 0.85
gguf_set_val_i16Function · 0.85
gguf_set_val_u32Function · 0.85
gguf_set_val_i32Function · 0.85
gguf_set_val_f32Function · 0.85
gguf_set_val_u64Function · 0.85
gguf_set_val_i64Function · 0.85
gguf_set_val_f64Function · 0.85
gguf_set_val_boolFunction · 0.85
gguf_set_val_strFunction · 0.85

Calls 3

gguf_find_keyFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected