We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1b7f9 commit 104f5e0Copy full SHA for 104f5e0
examples/llava/clip.cpp
@@ -497,7 +497,6 @@ struct clip_ctx {
497
498
// memory buffers to evaluate the model
499
ggml_backend_buffer_t params_buffer = NULL;
500
- ggml_backend_buffer_t compute_buffer = NULL;
501
502
ggml_backend_t backend = NULL;
503
ggml_gallocr_t compute_alloc = NULL;
@@ -1676,6 +1675,9 @@ void clip_free(clip_ctx * ctx) {
1676
1675
ggml_free(ctx->ctx_data);
1677
gguf_free(ctx->ctx_gguf);
1678
+ ggml_backend_buffer_free(ctx->params_buffer);
1679
+ ggml_backend_free(ctx->backend);
1680
+ ggml_gallocr_free(ctx->compute_alloc);
1681
delete ctx;
1682
}
1683
0 commit comments