Skip to content

Commit

Permalink
embedding : free the batch after execution (ggerganov#7297)
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4 authored May 15, 2024
1 parent 29499bb commit ea3b059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/embedding/embedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ int main(int argc, char ** argv) {

// clean up
llama_print_timings(ctx);
llama_batch_free(batch);
llama_free(ctx);
llama_free_model(model);
llama_backend_free();
Expand Down

0 comments on commit ea3b059

Please sign in to comment.