MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / find

Method find

llama.cpp:6305–6323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6303 }
6304
6305 llm_offload_func_e find(const char * name) const {
6306 const node * cur = root;
6307
6308 for (int i = 0; ; ++i) {
6309 const uint8_t c = name[i];
6310
6311 if (!c) {
6312 break;
6313 }
6314
6315 if (!cur->children[c]) {
6316 return OFFLOAD_FUNC_NOP;
6317 }
6318
6319 cur = cur->children[c];
6320 }
6321
6322 return cur->func;
6323 }
6324
6325 node * root = nullptr;
6326};

Callers 15

ggml-opencl.cppFile · 0.80
replace_allFunction · 0.80
has_seq_idMethod · 0.80
find_bpe_rankMethod · 0.80
llama_model_arch_nameFunction · 0.80
llm_load_vocabFunction · 0.80
llama_build_graphFunction · 0.80
resegmentMethod · 0.80
try_add_bigramMethod · 0.80
tokenizeMethod · 0.80
tokenizer_st_partitionFunction · 0.80

Calls

no outgoing calls

Tested by 15

make_positionalFunction · 0.64
InsertSyntheticTestCaseFunction · 0.64
RegisterInstantiationMethod · 0.64
SplitStringFunction · 0.64
GetIdMethod · 0.64
IsSubstringPredFunction · 0.64
FormatDeathTestOutputFunction · 0.64
OnThreadExitMethod · 0.64