mirror of
https://github.com/karpathy/llm.c.git
synced 2026-07-28 20:35:09 -04:00
added missing free
This commit is contained in:
parent
8b36c2f60b
commit
39f976f013
1 changed files with 1 additions and 0 deletions
|
|
@ -1140,6 +1140,7 @@ void gpt2_free(GPT2 *model) {
|
|||
cudaFreeCheck(&model->acts_memory);
|
||||
cudaFreeCheck(&model->inputs);
|
||||
cudaFreeCheck(&model->targets);
|
||||
cudaFreeCheck(&model->accumulated_mean_loss);
|
||||
cudaCheck(cudaFreeHost(model->cpu_losses));
|
||||
cudaCheck(cudaFreeHost(model->cpu_losses_fp32));
|
||||
free(model->workload_indices);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue