Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyaad30 authored Sep 29, 2023
1 parent f00de6f commit a480bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def train(rank, a, h):
old_d = oldest_checkpoint_path(a.checkpoint_path, "do_[0-9]*", preserved=2)

if os.path.exists(old_g):
pbar.write(f"Removed {old_g}")
print(f"Removed {old_g}")
os.remove(old_g)
if os.path.exists(old_d):
pbar.write(f"Removed {old_d}")
print(f"Removed {old_d}")
os.remove(old_d)

# Tensorboard summary logging
Expand Down

0 comments on commit a480bc6

Please sign in to comment.