We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a5953 commit 262c48dCopy full SHA for 262c48d
pytorch/pytorch_checkpoint.py
@@ -91,7 +91,7 @@ def objective(trial):
91
92
trial_number = RetryFailedTrialCallback.retried_trial_number(trial)
93
94
- artifact_id = trial.study.trials[trial_number].user_attrs.get("artifact_id")
+ artifact_id = trial_number and trial.study.trials[trial_number].user_attrs.get("artifact_id")
95
if trial_number is not None and artifact_id is not None:
96
download_artifact(
97
artifact_store=artifact_store,
0 commit comments