gguf : add gguf_get_tensor_name()
This commit is contained in:
parent
78b226a959
commit
860c9c63ce
2 changed files with 5 additions and 0 deletions
4
ggml.c
4
ggml.c
|
@ -18770,6 +18770,10 @@ size_t gguf_get_tensor_offset(struct gguf_context * ctx, int i) {
|
|||
return ctx->infos[i].offset;
|
||||
}
|
||||
|
||||
char * gguf_get_tensor_name(struct gguf_context * ctx, int i) {
|
||||
return ctx->infos[i].name.data;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int ggml_cpu_has_avx(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue