| 346 | throw std::runtime_error("gguf: no tensor " + name); |
| 347 | } |
| 348 | bool Gguf::has(const std::string& key) const { return ints_.count(key) || floats_.count(key) || int_arrays_.count(key); } |
| 349 | int64_t Gguf::i(const std::string& key) const { |
| 350 | auto it = ints_.find(key); |
| 351 | if (it == ints_.end()) throw std::runtime_error("gguf: no integer key " + key); |