| 19912 | } |
| 19913 | |
| 19914 | float gguf_get_val_f32(const struct gguf_context * ctx, int key_id) { |
| 19915 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_FLOAT32); |
| 19916 | return ctx->kv[key_id].value.float32; |
| 19917 | } |
| 19918 | |
| 19919 | uint64_t gguf_get_val_u64(const struct gguf_context * ctx, int key_id) { |
| 19920 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_UINT64); |