Skip to content

Commit

Permalink
Add removal of temporal file
Browse files Browse the repository at this point in the history
  • Loading branch information
kAIto47802 committed Oct 25, 2024
1 parent 4852e9d commit 3fc41e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytorch/pytorch_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def objective(trial):
artifact_id=artifact_id,
)
checkpoint = torch.load(f"./tmp_model_{trial.number}.pt")
os.remove(f"./tmp_model_{trial.number}.pt")
epoch = checkpoint["epoch"]
epoch_begin = epoch + 1

Expand Down

0 comments on commit 3fc41e8

Please sign in to comment.