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

Method find

engine/src/split/src/gguf.cpp:340–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340const Tensor* Gguf::find(const std::string& name) const {
341 auto it = tensors_.find(name);
342 return it == tensors_.end() ? nullptr : &it->second;
343}
344const Tensor& Gguf::t(const std::string& name) const {
345 if (const Tensor* p = find(name)) return *p;
346 throw std::runtime_error("gguf: no tensor " + name);

Callers 15

mainFunction · 0.45
runMethod · 0.45
test_fakeFunction · 0.45
test_wordsFunction · 0.45
lab_checkFunction · 0.45
parse_genFunction · 0.45
runMethod · 0.45
load_dflash2Function · 0.45
mainFunction · 0.45
bar1_refusedFunction · 0.45
coversFunction · 0.45
archFunction · 0.45

Calls 1

endMethod · 0.45

Tested by 15

mainFunction · 0.36
test_fakeFunction · 0.36
test_wordsFunction · 0.36
mainFunction · 0.36
bar1_refusedFunction · 0.36
coversFunction · 0.36
archFunction · 0.36
reportFunction · 0.36
report_refusedFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36