| 352 | return it->second; |
| 353 | } |
| 354 | double Gguf::f(const std::string& key) const { |
| 355 | auto it = floats_.find(key); |
| 356 | if (it == floats_.end()) throw std::runtime_error("gguf: no float key " + key); |
| 357 | return it->second; |
| 358 | } |
| 359 | const std::string& Gguf::s(const std::string& key) const { |
| 360 | auto it = strs_.find(key); |
| 361 | if (it == strs_.end()) throw std::runtime_error("gguf: no string key " + key); |