| 940 | } |
| 941 | |
| 942 | const 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 | |
| 947 | enum 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)); |