| 104 | } |
| 105 | |
| 106 | static float get_f32(const gguf_context * ctx, const std::string & key) { |
| 107 | const int i = get_key_idx(ctx, key.c_str()); |
| 108 | |
| 109 | return gguf_get_val_f32(ctx, i); |
| 110 | } |
| 111 | |
| 112 | static struct ggml_tensor * get_tensor(struct ggml_context * ctx, const std::string & name) { |
| 113 | struct ggml_tensor * cur = ggml_get_tensor(ctx, name.c_str()); |
no test coverage detected