| 884 | } |
| 885 | |
| 886 | int64_t gguf_get_val_i64(const struct gguf_context * ctx, int64_t key_id) { |
| 887 | GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx)); |
| 888 | GGML_ASSERT(ctx->kv[key_id].get_ne() == 1); |
| 889 | return ctx->kv[key_id].get_val<int64_t>(); |
| 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)); |
nothing calls this directly
no test coverage detected