ggml : hide ggml_object, ggml_cgraph, ggml_hash_set

ggml-ci
This commit is contained in:
Georgi Gerganov
2024-09-10 16:38:06 +03:00
parent 00ba2ff781
commit c8a3f291fe
13 changed files with 131 additions and 92 deletions

View File

@ -2449,7 +2449,7 @@ bool clip_image_batch_encode(clip_ctx * ctx, const int n_threads, const clip_ima
ggml_backend_graph_compute(ctx->backend, gf);
// the last node is the embedding tensor
struct ggml_tensor * embeddings = gf->nodes[gf->n_nodes - 1];
struct ggml_tensor * embeddings = ggml_graph_node(gf, -1);
// copy the embeddings to the location passed by the user
ggml_backend_tensor_get(embeddings, vec, 0, ggml_nbytes(embeddings));