MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / gguf_get_tensor_name

Function gguf_get_tensor_name

external/ggml/src/gguf.cpp:1048–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046}
1047
1048const char * gguf_get_tensor_name(const struct gguf_context * ctx, int64_t tensor_id) {
1049 GGML_ASSERT(tensor_id >= 0 && tensor_id < gguf_get_n_tensors(ctx));
1050 return ctx->info[tensor_id].t.name;
1051}
1052
1053enum ggml_type gguf_get_tensor_type(const struct gguf_context * ctx, int64_t tensor_id) {
1054 GGML_ASSERT(tensor_id >= 0 && tensor_id < gguf_get_n_tensors(ctx));

Callers 4

gguf_find_tensorFunction · 0.85
load_from_ggufFunction · 0.85
load_modelFunction · 0.85
magika_model_loadFunction · 0.85

Calls 1

gguf_get_n_tensorsFunction · 0.85

Tested by

no test coverage detected