MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / gguf_remove_key

Function gguf_remove_key

subprojects/llama.cpp/ggml/src/gguf.cpp:957–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

955}
956
957int64_t gguf_remove_key(struct gguf_context * ctx, const char * key) {
958 const int64_t key_id = gguf_find_key(ctx, key);
959 if (key_id >= 0) {
960 ctx->kv.erase(ctx->kv.begin() + key_id);
961 }
962 return key_id;
963}
964
965template<typename T>
966static void gguf_check_reserved_keys(const std::string & key, const T val) {

Callers 15

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

Calls 2

gguf_find_keyFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected