Skip to content

Commit

Permalink
free memory on capture output
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bossart committed Apr 4, 2022
1 parent ab2692b commit 4f0e37a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/train/train.jl
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ function _capture_output(output_dict, output_directory, id)
open(joinpath(output_path, key), "w") do io
Arrow.write(io, df)
end
df = nothing
GC.gc()
end
end
open(joinpath(output_path, "high_level_outputs"), "w") do io
Expand Down

0 comments on commit 4f0e37a

Please sign in to comment.