Skip to content

Commit 5f329a6

Browse files
kAIto47802not522
andauthored
Update pytorch/pytorch_checkpoint.py
Co-authored-by: Naoto Mizuno <[email protected]>
1 parent e7b117c commit 5f329a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch/pytorch_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def objective(trial):
9292
trial_number = RetryFailedTrialCallback.retried_trial_number(trial)
9393

9494
if trial_number is not None:
95-
study = optuna.load_study(study_name="pytorch_checkpoint", storage="sqlite:///example.db")
95+
study = trial.study
9696
artifact_id = study.trials[trial_number].user_attrs["artifact_id"]
9797
download_artifact(
9898
artifact_store=artifact_store, file_path="./tmp_model.pt", artifact_id=artifact_id

0 commit comments

Comments
 (0)