Skip to content

Commit

Permalink
Add gc_after_trial flag to avoid memory issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestum committed Feb 5, 2024
1 parent 147c996 commit b2a98d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuning/tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def main():
run_options={"--name": study.study_name, "--file_storage": "sacred"},
extra_named_configs=args.named_configs
),
callbacks=[optuna.study.MaxTrialsCallback(args.num_trials)]
callbacks=[optuna.study.MaxTrialsCallback(args.num_trials)],
gc_after_trial=True,
)


Expand Down

0 comments on commit b2a98d7

Please sign in to comment.