MCPcopy Create free account
hub / github.com/Niko1221/Strata / i

Method i

engine/src/split/src/gguf.cpp:349–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348bool Gguf::has(const std::string& key) const { return ints_.count(key) || floats_.count(key) || int_arrays_.count(key); }
349int64_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);
352 return it->second;
353}
354double 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);

Callers 15

cmd_runFunction · 0.45
loadMethod · 0.45
run_jobsFunction · 0.45
mainFunction · 0.45
run_selfcheck_readerFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
model_ropeFunction · 0.45
ModelMethod · 0.45
mainFunction · 0.45
load_sec5Function · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 15

mainFunction · 0.36
mainFunction · 0.36
load_sec5Function · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36