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

Function gguf_get_tensor_name

subprojects/llama.cpp/ggml/src/gguf.cpp:942–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942const char * gguf_get_tensor_name(const struct gguf_context * ctx, int64_t tensor_id) {
943 GGML_ASSERT(tensor_id >= 0 && tensor_id < gguf_get_n_tensors(ctx));
944 return ctx->info[tensor_id].t.name;
945}
946
947enum ggml_type gguf_get_tensor_type(const struct gguf_context * ctx, int64_t tensor_id) {
948 GGML_ASSERT(tensor_id >= 0 && tensor_id < gguf_get_n_tensors(ctx));

Callers 10

clip_model_loaderMethod · 0.85
load_tensorsMethod · 0.85
split_strategyMethod · 0.85
print_infoMethod · 0.85
writeMethod · 0.85
gguf_mergeFunction · 0.85
all_tensors_in_otherFunction · 0.85
gguf_find_tensorFunction · 0.85

Calls 1

gguf_get_n_tensorsFunction · 0.85

Tested by 2

all_tensors_in_otherFunction · 0.68