| 1046 | } |
| 1047 | |
| 1048 | const 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 | |
| 1053 | enum 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)); |
no test coverage detected