| 935 | } |
| 936 | |
| 937 | size_t gguf_get_tensor_offset(const struct gguf_context * ctx, int64_t tensor_id) { |
| 938 | GGML_ASSERT(tensor_id >= 0 && tensor_id < gguf_get_n_tensors(ctx)); |
| 939 | return ctx->info[tensor_id].offset; |
| 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)); |