| 890 | } |
| 891 | |
| 892 | double gguf_get_val_f64(const struct gguf_context * ctx, int64_t key_id) { |
| 893 | GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx)); |
| 894 | GGML_ASSERT(ctx->kv[key_id].get_ne() == 1); |
| 895 | return ctx->kv[key_id].get_val<double>(); |
| 896 | } |
| 897 | |
| 898 | bool gguf_get_val_bool(const struct gguf_context * ctx, int64_t key_id) { |
| 899 | GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx)); |
nothing calls this directly
no test coverage detected