Skip to content

Commit

Permalink
Optuna now continues until the bitter end
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaissis committed Sep 5, 2020
1 parent be4b021 commit 4162613
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion torchlib/find_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,11 @@ def objective(trial: opt.trial):
vis.show()

else:
study.optimize(objective, n_trials=cmdln_args.num_trials)
study.optimize(
objective,
n_trials=cmdln_args.num_trials,
catch=(Exception,),
gc_after_trial=True,
n_jobs=-1,
)

0 comments on commit 4162613

Please sign in to comment.