Skip to content

Commit

Permalink
Free the memory in layernorm.c
Browse files Browse the repository at this point in the history
  • Loading branch information
VinciGit00 authored Apr 9, 2024
1 parent 03f37cf commit 8397fb1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions doc/layernorm/layernorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ int main() {
check_tensor(c_dw, dw, C, "dw");
check_tensor(c_db, db, C, "db");

// TODO free stuff
free(x);
free(w);
free(b);
free(out);
free(mean);
free(rstd);
free(dout);
free(dx);
free(dw);
free(db);
return 0;
}
}

0 comments on commit 8397fb1

Please sign in to comment.