MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / str

Method str

subprojects/llama.cpp/src/llama-arch.cpp:2511–2527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2509 model_tensors(llm_get_tensor_names(arch)) {}
2510
2511std::string LLM_TN_IMPL::str() const {
2512 if (LLM_TENSOR_NAMES.find(tensor) == LLM_TENSOR_NAMES.end()) {
2513 GGML_ABORT("unknown tensor name for tensor id %d", static_cast<int>(tensor));
2514 }
2515
2516 if (model_tensors.find(tensor) == model_tensors.end()) {
2517 return LLM_TENSOR_NAMES.at(tensor);
2518 }
2519
2520 std::string name = ::format(LLM_TENSOR_NAMES.at(tensor), bid, xid);
2521 if (suffix != nullptr) {
2522 name += ".";
2523 name += suffix;
2524 }
2525
2526 return name;
2527}
2528
2529const char * llm_arch_name(llm_arch arch) {
2530 auto it = LLM_ARCH_NAMES.find(arch);

Callers 15

operator==Method · 0.45
operator!=Method · 0.45
load_tensorsMethod · 0.45
print_infoMethod · 0.45
llm_chat_apply_templateFunction · 0.45
initMethod · 0.45
ubatch_printMethod · 0.45
gguf_kv_to_strFunction · 0.45
format_sizeFunction · 0.45
get_node_fusion_nameMethod · 0.45
write_output_filesFunction · 0.45

Calls 4

formatFunction · 0.85
findMethod · 0.65
atMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected