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

Function ggml_set_name

ggml.c:3030–3035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3028}
3029
3030struct ggml_tensor * ggml_set_name(struct ggml_tensor * tensor, const char * name) {
3031 if (tensor == NULL) return NULL;
3032 strncpy(tensor->name, name, sizeof(tensor->name));
3033 tensor->name[sizeof(tensor->name) - 1] = '\0';
3034 return tensor;
3035}
3036
3037struct ggml_tensor * ggml_format_name(struct ggml_tensor * tensor, const char * fmt, ...) {
3038 va_list args;

Callers 15

gguf_init_from_fileFunction · 0.70
llama_kv_cache_initFunction · 0.70
create_tensor_forMethod · 0.70
sum_gpu_indexFunction · 0.70
llama.cppFile · 0.70
build_llama_variantsMethod · 0.70
build_optMethod · 0.70
build_falconMethod · 0.70
llama_build_graphFunction · 0.70
copy_tensor_by_nameFunction · 0.50
save_opt_context_ggufFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected